Re: Making a opaque copy of an NSImage
Re: Making a opaque copy of an NSImage
- Subject: Re: Making a opaque copy of an NSImage
- From: Ken Ferry <email@hidden>
- Date: Thu, 1 Oct 2009 15:38:55 -0700
Well, maybe not completely explicitly in this case.
Use -drawInRect:fromRect:operation:fraction:. operation is
NSCompositeSourceOver, which is "normal". The fraction is an opacity (when
used with source-over). 0.75 would be 25% transparent.
-Ken
On Thu, Oct 1, 2009 at 1:46 PM, Kyle Sluder <email@hidden> wrote:
> This is covered in the AppKit release notes.
>
> http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKit.html
>
> --Kyle Sluder
> _______________________________________________
>
> 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
>
_______________________________________________
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