![]() |
CMGetPS2ColorRenderingVMSize |
||||
Header: | CMApplication.h | Carbon status: | Supported | |
Determines the virtual memory size of the color rendering dictionary (CRD) for a printer profile before your application or driver obtains the CRD and sends it to the printer.
CMError CMGetPS2ColorRenderingVMSize ( CMProfileRef srcProf, CMProfileRef dstProf, UInt32 *vmSize, Boolean *preferredCMMnotfound );
A profile reference to a profile that supplies the rendering intent for the CRD.
A profile reference to the destination printer profile.
A pointer to a memory size. On return, the virtual memory size of the CRD.
A pointer to a flag for whether the preferred CMM was found. On return, has the value true if the CMM corresponding to profile was not available or if it was unable to perform the function and the default CMM was used. Otherwise, has the value false.
Your application or device driver can call this function to determine if the virtual memory size of the color rendering dictionary exceeds the printers capacity before sending the CRD to the printer. If the printers profile contains the Apple-defined optional tag 'psvm' described in CMConcatProfileSet, then the default CMM will return the data supplied by this tag specifying the CRD virtual memory size for the rendering intents CRD. If the printers profile does not contain this tag, then the CMM uses an algorithm to assess the VM size of the CRD, in which case the assessment can be larger than the actual maximum VM size.
The CMM uses the profile specified by the srcProf parameter to determine the rendering intent to use.
Supported in Carbon. Available in Carbon 1.0.2 and later when ColorSync 2.0 or later is present.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)