• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage drawInRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSImage drawInRect: (From: Aidas Dailide <email@hidden>)

  • Prev by Date: RE: Using static library in Cocoa app
  • Next by Date: Re: Getting notified when my cell is hidden in NSOutlineView
  • Previous by thread: NSImage drawInRect:
  • Next by thread: What is wrong here?
  • Index(es):
    • Date
    • Thread