Re: NSImage drawInRect:
Re: NSImage drawInRect:
- Subject: Re: NSImage drawInRect:
- From: Henry McGilton <email@hidden>
- Date: Wed, 18 Jun 2003 07:43:28 -0700
On Wednesday, June 18, 2003, at 01:32 AM, Aidas Dailide wrote:
Hi,
I have a little problem. For some reason this code draws image with
black background. I am sure that my image is transparent. Here is my
code:
[[NSImage imageNamed:@"rutuliukas"] drawInRect:handleRect
fromRect:NSMakeRect(0,0,[[NSImage imageNamed:@"rutuliukas"]
size].width,[[NSImage imageNamed:@"rutuliukas"] size].height)
operation:NSCompositeCopy fraction:1.0];
What is wrong with this?
Try using operation:NSCompositeSourceOver instead.
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
|
===============================+============================
_______________________________________________
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.