Re: PlotIconRef() into NSImage??
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.