Show / Hide Table of Contents

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 Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

Disposes the icon

Declaration
protected void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

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
| Improve this Doc View Source

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

| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX