public sealed record DesktopIconData : IEquatable<DesktopIconData> The image data of an icon.
Parameters
MediaTypeThe image format:
image/pngorimage/svg+xml.DataThe image file's bytes.
SizeThe icon's nominal size in pixels at scale 1: the size its theme designed it for, or the requested size for a scalable icon.
Exceptions
ArgumentExceptionThe media type is empty, the data is default or the size is not positive.
Constructors
DesktopIconData
public DesktopIconData(string MediaType, ImmutableArray<byte> Data, int Size) The image data of an icon.
Parameters
MediaTypeThe image format:
image/pngorimage/svg+xml.DataThe image file's bytes.
SizeThe icon's nominal size in pixels at scale 1: the size its theme designed it for, or the requested size for a scalable icon.
Exceptions
ArgumentExceptionThe media type is empty, the data is default or the size is not positive.
Properties
MediaType
public string MediaType { get; init; } The image format: image/png or image/svg+xml.
Size
public int Size { get; init; } The icon's nominal size in pixels at scale 1.