Carbon


PMSetResolution

Header: PMCore.h Carbon status: Supported

Sets the application drawing resolution.

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

A PMPageFormat object.

res

The desired application drawing resolution.

function result

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

DISCUSSION

Before setting your application drawing resolution, you should determine the valid drawing resolutions supported by the current printer, using PMPrinterGetPrinterResolutionCount, PMPrinterGetPrinterResolution and PMPrinterGetIndexedPrinterResolution.

SPECIAL CONSIDERATIONS

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 you to change information formerly stored in the iVRes and iHRes fields of the Printing Manager structure TPrInfo.


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