Re: NSImage with alpha
Re: NSImage with alpha
- Subject: Re: NSImage with alpha
- From: James Walker <email@hidden>
- Date: Mon, 22 Sep 2008 17:27:06 -0700
Randall Meadows wrote:
On Sep 22, 2008, at 3:20 PM, James Walker wrote:
Is there any easy way to make an NSImage that like another NSImage,
but with an overall translucency? It would be useful for drag images.
What about creating a new image of the appropriate size, locking focus
on that, and then use one of the -draw... functions that take a
"fraction" argument (for the resulting opacity)?
Thanks, that does it. I had glanced at the draw methods, but "fraction"
didn't jump out at me, since I was expecting "alpha".
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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