• 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: NSImage Pixel Alpha
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage Pixel Alpha


  • Subject: Re: NSImage Pixel Alpha
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Sun, 26 Oct 2003 17:32:41 +0000

On Sunday, October 26, 2003, at 05:02 pm, Seth Willits wrote:

On Sunday, October 26, 2003, at 12:44 AM, mmalcolm crawford wrote:

If I have an NSImage and want to know what the alpha value at a given pixel is, how would I go about doing that?

<http://cocoa.mamasam.com/COCOADEV/2002/04/2/32409.php>

http://cocoa.mamasam.com/COCOADEV/2001/10/1/13520.php

I wonder whether NSReadPixel() would work if you -lockFocus'd your NSImage. That would have the advantage that you don't have to write code to deal with different image formats (e.g. planar rather than pixel-packed).

Kind regards,

Alastair.
_______________________________________________
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.

References: 
 >Re: NSImage Pixel Alpha (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: The Problems with NSController
  • Next by Date: Re: The Problems with NSController
  • Previous by thread: Re: NSImage Pixel Alpha
  • Next by thread: XCode forgets to compile some files
  • Index(es):
    • Date
    • Thread