DesktopIconData record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopIconData : IEquatable<DesktopIconData>

Inherits or implements IEquatable.

The image data of an icon.

Parameters

MediaType

The image format: image/png or image/svg+xml.

Data

The image file's bytes.

Size

The 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

ArgumentException

The 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

MediaType

The image format: image/png or image/svg+xml.

Data

The image file's bytes.

Size

The 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

ArgumentException

The media type is empty, the data is default or the size is not positive.

Properties

Data

public ImmutableArray<byte> Data { get; init; }

The image file's bytes.

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.