Table of Contents

Class IcoFormat

Namespace
Egami.Formats.Ico
Assembly
Egami.dll

The Windows icon format, registered in Default. An icon holds several images (entries), each a PNG file or a BMP without its file header. Load returns the best entry, LoadAll every entry, and Save writes one entry per raster or a set resized to Sizes.

public static class IcoFormat
Inheritance
IcoFormat
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.ico");
using RasterList entries = Raster.LoadAll("app.ico");

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

Properties

Info

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

public static FormatInfo Info { get; }

Property Value

FormatInfo