• 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
Re: NSBitmapImageRep problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBitmapImageRep problems


  • Subject: Re: NSBitmapImageRep problems
  • From: Per Ejeklint <email@hidden>
  • Date: Thu, 11 Oct 2001 23:39:21 +0200

--- Ac Dixit John C. Randolph 01-10-11:

>
>On Thursday, October 11, 2001, at 01:35 PM, Per Ejeklint wrote:
>> tmpImage = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:
>> rgbPlanar
>> pixelsWide: 2176
>> pixelsHigh: 1448
>> bitsPerSample: 12
>> samplesPerPixel: 3
>> hasAlpha: NO
>> isPlanar: YES
>> colorSpaceName: NSDeviceRGBColorSpace
>> bytesPerRow: 0
>> bitsPerPixel: 16];
>
>I can see one inconsistency here. If you have 12 bits per sample, then
>you have 36 bits per pixel, not 16.

Well, bitsPerPixel is probably a misleading name. The documentation says:
"NSBitmapImageRep supports only a limited number of pixelBits values
(other than the default): for RGB images with 12 bps (bits per sample),
pixelBits may be 16; for RGB images with 24 bps, pixelBits may be 32."

>You might also want to just pass nil as the dataPlanes parameter, and
>let NSBitmapImageRep set it up for you.

Doesn't help. I've tried allsorts of combinations.

I probably have to face that NSBitmapImageRep will not go further than 8
bits per sample RGB. :-/

Thanks John and Brian!

/Per

--------------------------------------------
Per Ejeklint, OOPix AB, http://www.oopix.se
@work: +46 8 440 7396, @road +46 70 609 7396
--------------------------------------------


  • Follow-Ups:
    • Re: NSBitmapImageRep problems
      • From: Nat! <email@hidden>
References: 
 >Re: NSBitmapImageRep problems (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: half-initialized objects during decoding (Re: Persistance)
  • Next by Date: Aliases & fileAttributesAtPath:
  • Previous by thread: Re: NSBitmapImageRep problems
  • Next by thread: Re: NSBitmapImageRep problems
  • Index(es):
    • Date
    • Thread