Table of Contents

Class IcnsFormat

Namespace
Egami.Formats.Icns
Assembly
Egami.dll

Apple's icon format, registered in Default. An icon family holds several images (entries) of different sizes: PNG or JPEG 2000 files, run-length encoded ARGB or RGB with an 8-bit mask, or the old 1, 4 and 8-bit icons with a 1-bit mask. Load returns the best entry, LoadAll every entry, and Save writes one PNG entry per raster or a set resized to Sizes.

public static class IcnsFormat
Inheritance
IcnsFormat
Inherited Members

Examples

// Load gives the best entry: the largest, then the deepest. LoadAll gives every entry at its own size.
using Raster best = Raster.Load("app.icns");
using RasterList entries = Raster.LoadAll("app.icns");

// MinimumSize picks the smallest entry at least that big, so a 64 × 64 thumbnail decodes only the 64 × 64 entry.
using Raster small = Raster.Load("app.icns", options: new ReaderOptions { MinimumSize = new Size(64, 64) });

Properties

Info

Gets the format's registration: name, MIME type, extension, signature, reader and writer.

public static FormatInfo Info { get; }

Property Value

FormatInfo