All Manuals > CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

set-graphics-port-coordinates

Function
Summary

Modifies the transform of a port such that the edges of the port correspond to the arguments given.

Package

graphics-ports

Signature

set-graphics-port-coordinates port &key left top right bottom

Arguments

port

A graphics port.

left

A real number.

top

A real number.

right

A real number

bottom

A real number.

Description

The generic function set-graphics-port-coordinates modifies the transform of the graphics port port permanently such that the edges of port correspond to the values of the other arguments.

Example

The following code

(set-graphics-port-coordinates port :left -1.0 
                                    :top 1.0 
                                    :right 1.0 
                                    :bottom -1.0) 

changes the coordinates of the port so that the point (0 0) is in the exact center of the port and the edges are a unit distance away, with a right-handed coordinate system.

By default, left and top are 1.


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex