Class PngTitleBarIcon
Describes the icon rendered in the PNG title bar when window chrome is enabled.
public sealed class PngTitleBarIcon
- Inheritance
-
PngTitleBarIcon
- Inherited Members
Properties
Default
The bundled TigerCli terminal icon.
public static PngTitleBarIcon Default { get; }
Property Value
DisplayName
Human-readable asset name used in diagnostics.
public string DisplayName { get; }
Property Value
None
No title-bar icon.
public static PngTitleBarIcon None { get; }
Property Value
Methods
FromBytes(byte[], string?)
Creates a title-bar icon from PNG bytes. The byte array is cloned so later caller mutations do
not affect rendering.
public static PngTitleBarIcon FromBytes(byte[] bytes, string? displayName = null)
Parameters
Returns
Exceptions
- ArgumentNullException
bytesis null.- ArgumentException
bytesis empty.
FromFile(string, string?)
Loads a title-bar icon from a PNG file path when the image is rendered.
public static PngTitleBarIcon FromFile(string path, string? displayName = null)
Parameters
Returns
Exceptions
- ArgumentException
pathis null, empty, or whitespace.