• 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: Making a opaque copy of an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Making a opaque copy of an NSImage (From: David Alter <email@hidden>)
 >Re: Making a opaque copy of an NSImage (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: very newbie question
  • Next by Date: Re: CAKeyframeAnimation for 'position' not working
  • Previous by thread: Re: Making a opaque copy of an NSImage
  • Next by thread: Re: Making a opaque copy of an NSImage
  • Index(es):
    • Date
    • Thread