Re: How to highlight an image with transparency
Re: How to highlight an image with transparency
- Subject: Re: How to highlight an image with transparency
- From: Andrew Platzer <email@hidden>
- Date: Mon, 14 Jan 2002 13:04:11 -0800
On Monday, January 14, 2002, at 12:25 , John Blackburn wrote:
What's the proper composite for highlighting an image which contains
transparency? NSCompositePlusDarker seems the logical choice, but it
draws black for transparent pixels in the image. I've tried all of the
combinations of the composite modes I can think of, but none work exactly
right. I just want to highlight arbitrarily-shaped image just as Finder
does with icons.
Try NSCompositeSourceAtop with black at 50% alpha.
Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e