![]() |
PMGetGrafPtr |
||||
Header: | PMCore.h | Carbon status: | Supported | |
Obtains the printing port from an opaque printing context.
OSStatus PMGetGrafPtr ( PMPrintContext printContext, GrafPtr *grafPort );
A PMPrintContext object.
On return, a pointer to a grafPort defining the current printing port.
A result code. A result code. See
PMSessionGetGraphicsContext is recommended instead of PMGetGrafPtr.
Valid after calling PMBegin and creating a printing context.
Supported in Carbon. Available in Carbon 1.0.2 and later.
The PMGetGrafPtr function allows access to the pointer formerly stored in the gPort field of the Printing Manager structure TPrPort.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)