Re: Drawing tiff images with transparency
Re: Drawing tiff images with transparency
- Subject: Re: Drawing tiff images with transparency
- From: Nathan Day <email@hidden>
- Date: Fri, 11 Apr 2003 22:47:11 +0930
Try using the NSImage method compositeToPoint:operation: with the
operation NSCompositeSourceAtop
On Thursday, April 10, 2003, at 10:32 PM, Jesus De Meyer wrote:
I'm having trouble with drawing a TIFF image that has transparency in
a subclass of an NSView. It appears that the transparent parts of the
image show up black, which is normal as they also do that in the
Finder when you want to preview them.
However, if I use a TIFF image with transparency and add it to say a
button, the transparency is respected. I'm guessing I have to do a
special transfer mode, but so far all the transfer modes I've tried
either show nothing (black) or show the image with the black parts.
How do fix this?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.