Important: The information in this document is obsolete and should not be used for new development.
GetPixBaseAddr
You can use theGetPixBaseAddr
function to obtain a pointer to an offscreen pixel map.
FUNCTION GetPixBaseAddr (pm: PixMapHandle): Ptr;
pm
- A handle to an offscreen pixel map. To get a handle to an offscreen pixel map, use the
GetGWorldPixMap
function, described on page 6-31.DESCRIPTION
TheGetPixBaseAddr
function returns a 32-bit pointer to the beginning of a pixel image. ThebaseAddr
field of thePixMap
record for an offscreen graphics world contains a handle instead of a pointer, which is what thebaseAddr
field for an onscreen pixel map contains. You must use theGetPixBaseAddr
function to obtain a pointer to thePixMap
record for an offscreen graphics world.Your application should never directly access the
baseAddr
field of thePixMap
record for an offscreen graphics world; instead, your application should always useGetPixBaseAddr
. If your application is using 24-bit mode, your application should then use thePixMap32Bit
function (described next) to determine whether a pixel map requires 32-bit addressing mode for access to its pixel image.If the offscreen buffer has been purged,
GetPixBaseAddr
returnsNIL
.SPECIAL CONSIDERATIONS
Any QuickDraw routines that your application uses after callingGetPixBaseAddr
may change the base address for the offscreen pixel image.The
GetPixBaseAddr
function may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theGetPixBaseAddr
function are
Trap macro Selector _QDExtensions $0004000F SEE ALSO
See Inside Macintosh: Memory for information about determining addressing modes.