[]
Represents a single frame in ICO file.
public class IcoFrame : IDisposable
Initializes a new instance of IcoFrame class.
public IcoFrame(GcBitmap bitmap, IcoFrameEncoding encoding)
bitmap
GcBitmapThe source bitmap for the ICO frame.
encoding
IcoFrameEncodingEncoding of the frame image.
Gets the encoding of the frame image.
public IcoFrameEncoding Encoding { get; }
Gets the height of the image, in pixels.
public int Height { get; }
Gets a value indicating whether the IcoFrame has been disposed of.
public bool IsDisposed { get; }
Gets the width of the image, in pixels.
public int Width { get; }
Clean up any resources being used.
public void Dispose()
Performs cleanup operations on managed and unmanaged resources.
protected virtual void Dispose(bool disposing)
disposing
boolPerforms cleanup operations on unmanaged resources.
protected ~IcoFrame()
Reads the frame image into an existing GcBitmap.
public void ToGcBitmap(GcBitmap bmp)
Gets the frame image as a GcBitmap.
public GcBitmap ToGcBitmap(bool detachFromIco = true)
detachFromIco
boolIndicates if the returned image should be a copy of the frame image.
Creates an Image object for the frame.
public Image ToImage()