How to write out a Cocoa file type icon as a 16x16 PNG file?

If you are sure that there's a 16x16 sized version of the icon present in the NSImage, you could look through the representations ( -NSImage representations ) and select the one you're interested in by looking at the size ( -NSImageRep pixelsWide and pixelsHigh ). You could then write the representation to disk.

Nikolai is right, you should check to see if the image has a 16x16 representation first, but to simply resize an image to 16 x 16 you would do this.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions