我正在尝试为 Mac OS X 创建一个应用程序,它将图像类型转换为 icns 文件。我想知道如何开始这样做。任何建议都会很好!
Thanks,
Kevin
使用 CGImageSource API(例如,CGImageSourceCreateWithURL
, CGImageSourceCreateImageAtIndex
)将每个图像加载到CGImageRef
。然后使用 CGImageDestination API(例如,CGImageDestinationCreateWithURL
, CGImageDestinationAddImage
, CGImageDestinationFinalize
)将您拥有的许多图像合并到一个图标文件中。第3个参数CGImageDestinationCreateWithURL
将会kUTTypeAppleICNS
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)