Re: NSImage/NSImageView opacity
Re: NSImage/NSImageView opacity
- Subject: Re: NSImage/NSImageView opacity
- From: Randall Meadows <email@hidden>
- Date: Fri, 24 Oct 2008 13:10:50 -0600
On Oct 23, 2008, at 9:11 PM, Ken Ferry wrote:
On Thu, Oct 23, 2008 at 6:20 PM, Randall Meadows <cocoa-dev@not-
pc.com> wrote:
I *thought* the trick to doing this was to use clearColor, so I do
this right after I create the NSImage and lock focus on it:
[Boneheaded mistake pointed out in a previous message...]
Last, you might be interested in -[NSView
cacheDisplayInRect:toBitmapImageRep:] as an alternate way of
accomplishing the end goal. Take a gander at the 10.4 AppKit release
notes, that have an explanatory section on this method. Search for
"NSView Drawing Redirection API" at <http://developer.apple.com/releasenotes/Cocoa/AppKitOlderNotes.html
>.
That looks perfect, thank you!
_______________________________________________
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