Re: Acceptable bit-depths for NSImageBitmapRep
Re: Acceptable bit-depths for NSImageBitmapRep
- Subject: Re: Acceptable bit-depths for NSImageBitmapRep
- From: Cameron Hayne <email@hidden>
- Date: Fri, 9 Aug 2002 14:13:21 -0400
On Friday, August 9, 2002, at 01:42 pm, Clark S. Cox III wrote:
theRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: (unsigned
char**)&data
pixelsWide: w
pixelsHigh: h
bitsPerSample: 12
samplesPerPixel: 1
hasAlpha: NO
isPlanar: NO
colorSpaceName: NSCalibratedWhiteColorSpace
bytesPerRow: 0
bitsPerPixel: 16];
Don't you have to specify the correct (non-zero) value for bytesPerRow
since bitsPerPixel != bitsPerSample ?
The docs don't say anything about it using bitsPerPixel to calculate
bytesPerRow for you - yes, it seem to me it should do this but it
doesn't say that.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.