All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS 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 macro with-transformed-area 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.


CAPI User Guide and Reference Manual (Macintosh version) - 3 Aug 2017

NextPrevUpTopContentsIndex