NSImage drawAtPoint & Transparency
NSImage drawAtPoint & Transparency
- Subject: NSImage drawAtPoint & Transparency
- From: "Aychamo Aychamo" <email@hidden>
- Date: Sun, 15 Oct 2006 12:46:49 -0400
Hello everyone
I've encountered an odd little problem. In my view's drawRect method
I'm drawing an NSImage to the screen. The image has transparency
(which I can verify by viewing it in Photoshop, and by double-clicking
on it in XCode and seeing it's transparent parts when XCode shows me
the image.)
But, when I draw it to the screen, it has a black background instead
of transparent. I'm using the following code:
[currentImage drawAtPoint: NSMakePoint(0,-2) fromRect: NSZeroRect
operation: NSCompositeCopy fraction: 1.0];
Does anyone have an idea what may be making it draw a black
background? I've even tried [currentImage setBackgroundColor:
[NSColor clearColor]]; without luck.
Thank you
AA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden