• 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 drawAtPoint & Transparency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSImage drawAtPoint & Transparency
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Core Data: Need help with fetch request
  • Next by Date: Re: NSImage drawAtPoint & Transparency
  • Previous by thread: Re: NSImage Memory Management: To Page Or Not To Page.
  • Next by thread: Re: NSImage drawAtPoint & Transparency
  • Index(es):
    • Date
    • Thread