Carbon


PMGetColorMode

Header: PMCore.h Carbon status: Supported

Obtains the color mode for the print job.

OSStatus PMGetColorMode (
    PMPrintSettings printSettings, 
    PMColorMode *colorMode
);
Parameter descriptions
printSettings

A PMPrintSettings object.

colorMode

On return, the color mode setting (black and white, grayscale, or color). See “Color Mode Constants” for a list of possible return values.

function result

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

SPECIAL CONSIDERATIONS

Before using this function you must call PMSessionValidatePrintSettings or PMValidatePrintSettings to ensure that the print settings object is valid.

Valid within a printing session after creating a print settings object.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.1 and later when CarbonLib 1.1 or later is present.


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