• 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:04:44 -0600

On Oct 23, 2008, at 7:53 PM, Jason Coco wrote:

On Oct 23, 2008, at 21:20 , Randall Meadows wrote:

The custom drawing doesn't fill up all the contents of the bounds of the view. Specifically, a black border is left around the outside of where I'm drawing. You can view a snapshot of what I'm talking about at <http://www.not-pc.com/ViewBorder.png> (that's the top-right corner of the custom view); the blue is the background, the gray is the contents of the view I'm drawing, and the black is what I'd like to get rid of (the blue background should show through).


How are you compositing the image when you're drawing it to the view?


Bah, "incorrectly", apparently. Using the right compositing mode (NSCompositeSourceOver instead of NSCompositeCopy--DOH!) fixed it right up. Thanks for the whack upon the noggin.

_______________________________________________

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: Jason Coco <email@hidden>)

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