• 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/NSImageView opacity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSImage/NSImageView opacity (From: Randall Meadows <email@hidden>)
 >Re: NSImage/NSImageView opacity (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Re: No warning on float to int assignment?
  • Next by Date: Re: NSPredicate predicateWithFormat:
  • Previous by thread: Re: NSImage/NSImageView opacity
  • Next by thread: Re: NSImage/NSImageView opacity
  • Index(es):
    • Date
    • Thread