Re: NSImage/NSImageView opacity
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