• 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: PlotIconRef() into NSImage??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PlotIconRef() into NSImage??


  • Subject: Re: PlotIconRef() into NSImage??
  • From: Esteban <email@hidden>
  • Date: Thu, 18 Jul 2002 13:40:52 -0700

Tristan,

I wrote a program that does a similar thing a while back, except it does it for CICNs.
I uploaded the program with source code to my idisk account a while back.
check out http://homepage.mac.com/estebanuribe/CIconViewer.tgz

You can get an idea from the CICNIconReader class on how to convert that Icon to PicHandle to NSImage.

Hope that helps,
-Esteban

On Thursday, July 18, 2002, at 12:40 PM, email@hidden wrote:

Hi,

I'm trying to get a volume icon into an NSImage. I tried doing a PlotIconRef() into a new PICT created from OpenCPicture(), closing the PICT, creating an NSPICTImageRep and then drawing that into an NSImage. However, doing this produces jagged, thick black edges around the icons where the alpha mask is not getting drawn correctly. So I thought I could instead PlotIconRef() into a new GWorld, then put the GWorld's pixmap into an NSBitmapImageRep... but this only leads to garbage in the NSImage. Does anyone have any suggestions?

Thanks in advance,
Tristan
_______________________________________________
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.
_______________________________________________
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: 
 >PlotIconRef() into NSImage?? (From: email@hidden)

  • Prev by Date: Re: Login App
  • Next by Date: Re: Builds fail on previously working projects - help
  • Previous by thread: PlotIconRef() into NSImage??
  • Next by thread: Some MVC questions
  • Index(es):
    • Date
    • Thread