Re: NSImage Pixel Alpha
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.