[]
Represents a set of images stored in ICO format.
public class GcIco : IDisposable
Initializes a new empty instance of GcIco class.
public GcIco()
Initializes a new instance of GcIco class and loads data from a byte array.
public GcIco(byte[] bytes)
bytes
byte[]The source data in ICO format.
Initializes a new instance of GcIco class and loads data from the specified stream.
public GcIco(Stream stream)
stream
System.IO.StreamThe source stream with data in ICO format.
Initializes a new instance of GcIco class and loads data from the specified ICO file.
public GcIco(string path)
path
stringPath to the ICO file.
Gets the list of IcoFrames.
public List<IcoFrame> Frames { get; }
Gets a value indicating whether the GcIco has been disposed of.
public bool IsDisposed { get; }
Applies a license key to an instance of GcIco.
public void ApplyLicenseKey(string key)
key
stringThe license key to set.
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 ~GcIco()
Loads data in ICO format from a byte array.
public void Load(byte[] bytes)
bytes
byte[]The source data in ICO format.
Loads data in ICO format from a stream.
public void Load(Stream stream)
stream
System.IO.StreamThe source stream with data in ICO format.
Loads data from the specified ICO file.
public void Load(string path)
path
stringPath to the ICO file.
Saves data in ICO format to the specified stream.
public void Save(Stream stream)
stream
System.IO.StreamThe output stream.
Saves data in ICO format to the specified file.
public void Save(string filePath)
filePath
stringFull path to the output file.