Class IcnsWriter¶
Namespace: Apogee.Export
Assembly: Apogee.Export.dll
Writes the macOS icon file format, icns: the characters icns, the length of the whole file (4 bytes, big-endian), and the images, each as its type (four characters), its length
including these 8 bytes (big-endian) and a PNG file. The images are the sizes Finder and the Dock use, from 16 to 1024 pixels; a size above the game's icon is left out, so nothing in the file is
an enlarged copy, and macOS scales the biggest image that is there.
public static class IcnsWriter
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
Build(IconImages, ICollection<string>)¶
Makes the icns file of icon.
public static byte[] Build(IconImages icon, ICollection<string> warnings)
Parameters¶
icon IconImages
The game's icon.
warnings ICollection<string>
Gets a warning when the images of 512 pixels or more are missing because the icon is smaller (and the icon's own warnings are in
Returns¶
byte[]