Can't create NSBitmapImageRep for CMYK planar data?
Can't create NSBitmapImageRep for CMYK planar data?
- Subject: Can't create NSBitmapImageRep for CMYK planar data?
- From: Dave Camp <email@hidden>
- Date: Fri, 3 Feb 2006 18:29:46 -0800
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?
Thanks,
Dave
---
There's an old proverb that says just about whatever you want it to.
_______________________________________________
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