| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I was basing my implicit assumption (that it didn't use to work) on the_______________________________________________
attached e-mail. Is this information out of date?
Thanks,
Aaron
--------------------------------------------------
Aaron Sher
Principal Software Engineer
Vanteon Corporation
(585) 248-0510 x250
-----Original Message-----http://www.lists.apple.com/mailman/listinfo/printing
From: email@hidden
[mailto:email@hidden]On Behalf Of Paul Danbold
Sent: Tuesday, February 18, 2003 5:24 PM
To: email@hidden
Subject: 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:
Do not post admin requests to the list. They will be ignored.
From: "Sher, Aaron" <email@hidden>
Date: Tue Jun 18, 2002 5:48:21 AM US/Pacific
To: "Shadunsky, Alla" <email@hidden>, "McGillivray, Dan" <email@hidden>
Cc: "Guy Wong" <email@hidden>, "Lafford, Ann" <email@hidden>
Subject: FW: TIOGADEV> Greyscale output from PMRasterBand
I guess this answers the question of whether or not we can get better
performance by having the OS do the color-to-grayscale conversion.
Aaron
-----Original Message-----component
From: email@hidden
[mailto:email@hidden]On Behalf Of Paul Danbold
Sent: Monday, June 17, 2002 6:23 PM
To: email@hidden
Subject: Re: TIOGADEV> Greyscale output from PMRasterBand
Graham,
This is our bug to fix. It's been the topic of several TiogaDev
emails. It
looks like our code is converting a grayscale profile into a 3
colorspace, subsequently setting up an invalid CG context, hence theerrormessage you're seeing. For now the recommended workaround is toWWDC.
request RGB
and do the color->gray conversion in your PM.
-Paul
On 6/17/02 8:21 AM, "Graham Miln" <email@hidden> wrote:
Dear Paul and the Tioga group,
Sorry for not getting back to you about our conversations at thenumerousThings have been nice and busy here. Lots of new printers (andfilingolder models) to get up and running. I will try and get around toOSsome bug reports shortly :-)
I am currently trying to get pure greyscale raster data from the MactoX pre-Jaguar PMRasterBand structure.
Within the BeginJob routine we are passing back the following valuesCorethe converter via the kPMConverterSetupTicket:
kPMRequestedPixelFormatKey = kPMGray_8
kPMRequestedPixelLayoutKey = kPMDataPlanar
This results in a 1003 printing error being returned via the Print
Center user interface. The console logs the following message from
/System/Library/Printers/Libraries/PrintJobMgr/Contents/MacOS/ PrintJobMgGraphics:
r:bitkCGErrorFailure : CGBitmapContextCreate: unsupported parameter
combination: 8 bits/component; 8 bits/pixel; 3-component colorspace;
kCGImageAlphaNone.
I have tried a few combinations but each time the above error and
message is returned.
Which combination of format and layout should I be using the get 8greyscale data out of the bands?
Thanks in advance!
Graham
--
Graham Miln, Software Engineer
mailto:email@hidden
| References: | |
| >RE: Requesting 8-bit grayscale from the converter (From: "Aaron Sher" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.