Re: Can't create NSBitmapImageRep for CMYK planar data?
Re: Can't create NSBitmapImageRep for CMYK planar data?
- Subject: Re: Can't create NSBitmapImageRep for CMYK planar data?
- From: Marcel Weiher <email@hidden>
- Date: Sat, 4 Feb 2006 10:53:09 +0000
On 4 Feb 2006, at 02:29, Dave Camp wrote:
I'm trying to create an NSBitmapImageRep for some CMYK planar data
I have in memory, but I get the following error message in the
console:
2006-02-03 16:45:35.575 foo[9208] Inconsistent set of values to
create NSBitmapImageRep
My test code looks like the following:
UInt8 *planes[4] = { plane1, plane2, plane3, plane4 };
NSBitmapImageRep *imageRep = [[NSBitmapImageRep alloc]
initWithBitmapDataPlanes:planes
pixelsWide:5100
pixelsHigh:6600
bitsPerSample:8
samplesPerPixel:4
hasAlpha:NO
isPlanar:YES
colorSpaceName:@"NSDeviceCMYKColorSpace"
bytesPerRow:5100
bitsPerPixel:32];
Yes, those large looking sizes are correct. 8.5"x11" 600 dpi CMYK
image... :-)
Should this work? Have I flubbed one of the parameters?
Have you tried leaving bytesPerRow: and bitsPerPixel: at zero?
Also, you should probably use NSDeviceCMYKColorSpace instead of
@"NSDeviceCMYKColorSpace".
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
The simplicity of power HOM, IDEAs, MetaAd etc.
1d480c25f397c4786386135f8e8938e4
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden