Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 2 - Basic QuickDraw / Basic QuickDraw Reference
Routines / Managing Bitmaps, Port Rectangles, and Clipping Regions


PortSize

The PortSize procedure is normally called only by the Window Manager; it changes the size of the port rectangle of the current graphics port (basic or color).

PROCEDURE PortSize (width,height:\xDDInteger);
width
The width of the reset port rectangle.
height
The height of the reset port rectangle.
DESCRIPTION
The PortSize procedure changes the size of the current graphics port's port rectangle. The upper-left corner of the port rectangle remains at its same location; the width and height of the port rectangle are set to the given width and height. In other words, PortSize moves the lower-right corner of the port rectangle to a position relative to the upper-left corner.

The PortSize procedure doesn't change the clipping or visible region of the graphics port, nor does it affect the local coordinate system of the graphics port;\xDDit changes only the width and height of the port rectangle. Remember that all drawing occurs only in the intersection of the boundary rectangle and the port rectangle, after being cropped to the visible region and the clipping region.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996