Objective-C - Convert an image to icns

后端 未结 3 1870
再見小時候
再見小時候 2021-01-07 16:06

I am trying to create an app for the Mac OS X that will convert an image type to an icns file. I\'m wondering how I can get started on doing so. Any suggestions would be nic

3条回答
  •  别那么骄傲
    2021-01-07 16:42

    1 Create a folder named icon.iconset.
    2 Add one or more of the following images to the folder:

    icon_16x16.png
    icon_16x16@2x.png
    icon_32x32.png
    icon_32x32@2x.png
    icon_128x128.png
    icon_128x128@2x.png
    icon_256x256.png
    icon_256x256@2x.png
    icon_512x512.png
    icon_512x512@2x.png
    

    3 Run this command and icon.icns will be created.

    iconutil -c icns icon.iconset
    

    http://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html#//apple_ref/doc/uid/TP40012302-CH7-SW2

提交回复
热议问题