• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't create NSBitmapImageRep for CMYK planar data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Can't create NSBitmapImageRep for CMYK planar data?
      • From: Marcel Weiher <email@hidden>
  • Prev by Date: Looking for someone to develop small OS X desktop app
  • Next by Date: Re: Simple loadNibNamed Question
  • Previous by thread: Looking for someone to develop small OS X desktop app
  • Next by thread: Re: Can't create NSBitmapImageRep for CMYK planar data?
  • Index(es):
    • Date
    • Thread