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 set-graphics-port-coordinates function modifies the transform of the port is permanently such that the edges of the port correspond to the values of the 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.


LispWorks CAPI Reference Manual - 17 Mar 2008

NextPrevUpTopContentsIndex