Re: NSBitmapImageRep problems
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
--------------------------------------------