Table of Contents

Class CurFormat

Namespace
Egami.Formats.Ico
Assembly
Egami.dll

The Windows cursor format, registered in Default: an icon whose entries also carry a hotspot, the pixel that points. Read and written as IcoFormat, with Hotspot and Hotspot.

public static class CurFormat
Inheritance
CurFormat
Inherited Members

Examples

// A cursor is an icon with a hotspot, given at the raster's own size and scaled to each entry.
arrow.Save("pointer.cur", new IcoWriterOptions { Sizes = [32, 48], Hotspot = new Point(0, 0) });
using RasterList cursor = Raster.LoadAll("pointer.cur");
Point? hotspot = ((IcoDetails)cursor[0].Metadata.FormatDetails!).Hotspot;

Properties

Info

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

public static FormatInfo Info { get; }

Property Value

FormatInfo