• 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: Getting colour data at specified point in an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting colour data at specified point in an NSImage
      • From: email@hidden
References: 
 >Getting colour data at specified point in an NSImage (From: Michael Watson <email@hidden>)
 >Re: Getting colour data at specified point in an NSImage (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: Locating a Framework in a Non-Standard Directory
  • Next by Date: Re: Locating a Framework in a Non-Standard Directory
  • Previous by thread: Re: Getting colour data at specified point in an NSImage
  • Next by thread: Re: Getting colour data at specified point in an NSImage
  • Index(es):
    • Date
    • Thread