• 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: NSImage with alpha
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSImage with alpha (From: James Walker <email@hidden>)
 >Re: NSImage with alpha (From: Randall Meadows <email@hidden>)

  • Prev by Date: Re: [Q] Custom NSFormatter and IB's Cocoa Simulator
  • Next by Date: [Moderator] Re: Developer needed
  • Previous by thread: Re: NSImage with alpha
  • Next by thread: Developer needed
  • Index(es):
    • Date
    • Thread