Re: Getting colour data at specified point in an NSImage
Re: Getting colour data at specified point in an NSImage
- Subject: Re: Getting colour data at specified point in an NSImage
- From: Michael Watson <email@hidden>
- Date: Tue, 13 Mar 2007 18:32:20 -0400
Using NO for isPlanar has no effect, but yeah, later I'd be using
planar data.
Either way, it's probably a good idea to use NO for testing purposes
until I figure this out. :-)
--
mikey
On 13 Mar, 2007, at 18:25, Shawn Erickson wrote:
On 3/13/07, Michael Watson <email@hidden> wrote:
Oops, already spotted a mistake. This should be my initializer:
bitmapRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL
pixelsWide:imageSize.width
pixelsHigh:imageSize.height
bitsPerSample:8
samplesPerPixel:4
hasAlpha:YES
isPlanar:YES
colorSpaceName:NSCalibratedRGBColorSpace
bytesPerRow:0 //
let NSBitmapImageRep take care of this
bitsPerPixel:32];
You are passing YES for isPlanar. Are you sure you really want a
planar image?
Note sure if somehow that is causing you a problem.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden