LispWorks CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

with-transformed-area

Macro
Summary

Transforms a rectangle using a port's transform, and binds the resulting values to a variable across the evaluation of the macro's body.

Package

graphics-ports

Signature

with-transformed-area ( points port left top right bottom )
&body body

Arguments

points

A variable.

port

A graphics port.

left

A real number.

top

A real number.

right

A real number.

bottom

A real number.

body

A body of Lisp code.

Values

result

The return value of the last form executed in body .

Description

The with-transformed-area macro transforms a rectangle, binding the resulting four corner points to points for the duration of body . The left top right bottom values represent a rectangular area bounded by four points. The four points are transformed by the port 's transform and the list of eight values (alternating x and y values for four points) bound to the points variable for the duration of the macro body.


LispWorks CAPI Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex