Carbon


PMGetResolution

Header: PMCore.h Carbon status: Supported

Obtains the current application drawing resolution.

OSStatus PMGetResolution (
    PMPageFormat pageFormat, 
    PMResolution *res
);
Parameter descriptions
pageFormat

A PMPageFormat object.

res

On return, the application drawing resolution.

function result

A result code. A result code. See “Result Codes”.

DISCUSSION

SPECIAL CONSIDERATIONS

Before using this function you must call PMSessionValidatePageFormat or PMValidatePageFormat to ensure that the page format object is valid.

Valid within a printing session after creating a page format object.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.

CARBON NOTES

This function replaces the Printing Manager opcode getRslDataOp and allows access to information formerly stored in the iVRes and iHRes fields of the Printing Manager structure TPrInfo.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)