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 5 - Graphics Devices / Graphics Devices Reference
Routines for Graphics Devices / Getting the Available Graphics Devices


GetMaxDevice

To obtain a handle to the GDevice record for the video device with the greatest pixel depth, use the GetMaxDevice function.

FUNCTION GetMaxDevice (globalRect: Rect): GDHandle;
globalRect
A rectangle, in global coordinates, that intersects the graphics devices that you are searching to find the one with the greatest pixel depth.
DESCRIPTION
As its function result, GetMaxDevice returns a handle to the GDevice record for the video device that has the greatest pixel depth among all graphics devices that intersect the rectangle you specify in the globalRect parameter.

SPECIAL CONSIDERATIONS
The GetMaxDevice function may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996