Class Icon
Manages a native Windows Icon instance
Inheritance
System.Object
Icon
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: WinUIEx
Assembly: WinUIEx.dll
Syntax
public class Icon : IDisposable
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
Dispose(Boolean)
Disposes the icon
Declaration
protected void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Finalize()
Declaration
protected void Finalize()
FromByteArray(Byte[], UInt32)
Creates an icon from a raw icon byte array
Declaration
public static Icon FromByteArray(byte[] rgba, uint size)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | rgba | RGBA byte array |
System.UInt32 | size | The width and height of the image |
Returns
Type | Description |
---|---|
Icon |
FromFile(String)
Loads an icon from an .ico file.
Declaration
public static Icon FromFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Path to file |
Returns
Type | Description |
---|---|
Icon | Icon |
Yang()
For testing - Creates a simple Yang icon
Declaration
public static Icon Yang()
Returns
Type | Description |
---|---|
Icon | Icon with a Yang icon |
Implements
System.IDisposable