Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting 8-bit grayscale from the converter



Aaron,

8-bit grayscale (kPMGray_8) is supported on both 10.1.x and 10.2.x. But the sample code does not do a good job of showing how a PM can specify and process grayscale output. If your driver is based on the SamplePM you will need to make the following changes:

1. Specify a grayscale profile in your PrinterInfo ticket. So, for example, in PMColorDeviceProfiles.xml ...

<dict>
<key>PMColorDeviceProfileID</key>
<integer>1</integer>
<key>PMColorDeviceProfileName</key>
<string>Grayscale</string>
<key>PMColorDeviceProfileURL</key>
<string>file://localhost//System/Library/ColorSync/Profiles/ Generic%20Gray%20Profile.icc</string>
</dict>

2. Tell the converter that you want to use this profile. In the sample code, the hpVerifyColorSyncProfileID function should, but does not, return a valid profile id to put into the converter setup ticket. If the profile id for the grayscale profile is "1", then hpVerifyColorSyncProfileID() should return "1".

3. The sample code shows how to process color output (kPMXRGB_32) from the converter. In hpCreateConverterSetup() that means setting kPMRequestedPixelFormatKey to kPMGray_8, instead of kPMXRGB_32, in the converter setup ticket. And methods in EnginePCL.cp (e.g. PrintBand) need to be modified to handle grayscale data.

I hope this helps.

-Paul



On Tuesday, February 18, 2003, at 09:57 AM, Aaron Sher wrote:

I heard a rumor that the converter can now support 8-bit grayscale. Is this
true? If so, what version was it introduced in?

Thanks,
Aaron

--------------------------------------------------
Aaron Sher
Principal Software Engineer
Vanteon Corporation
(585) 248-0510 x250
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.

References: 
 >Requesting 8-bit grayscale from the converter (From: "Aaron Sher" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.