• 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
NSImage drawInRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage drawInRect:


  • Subject: NSImage drawInRect:
  • From: Aidas Dailide <email@hidden>
  • Date: Wed, 18 Jun 2003 11:32:24 +0300

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?

Thanks,

Aidas
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSImage drawInRect:
      • From: Henry McGilton <email@hidden>
  • Prev by Date: New ObjC feature was (Re: Is ObjC++ a Bad Thing?) on pbuser list
  • Next by Date: What is wrong here?
  • Previous by thread: New ObjC feature was (Re: Is ObjC++ a Bad Thing?) on pbuser list
  • Next by thread: Re: NSImage drawInRect:
  • Index(es):
    • Date
    • Thread