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

Re: Plotting icons into NSImage


  • Subject: Re: Plotting icons into NSImage
  • From: Uli Kusterer <email@hidden>
  • Date: Wed, 2 May 2007 21:54:08 +0200


On 30.04.2007, at 18:55, Daniel Dalquen wrote:
When I open myicon.tif in Preview, the icon is on top of a black background. I thought it might be the alpha channel, but then Preview should be able to deal with transparency... What is it that goes wrong?

Just a guess: Have you tried doing an NSRectFill() with clearColor (transparentColor? whatever...) before drawing? It might just be that the image starts out opaque and when you draw it just composites on that?


Otherwise, is there any reason why you can't use NSWorkspace's iconForFile: ?

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Plotting icons into NSImage
      • From: Daniel Dalquen <email@hidden>
  • Prev by Date: Re: Size of substring
  • Next by Date: Re: Lid opened notification?
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: Plotting icons into NSImage
  • Index(es):
    • Date
    • Thread