Skip to content

ModelImage

Namespace: E2E

public sealed record ModelImage : IEquatable<ModelImage>

An image a model reads: the encoded bytes of a screenshot, already sized for the model.

Inheritance: object

Implements: IEquatable<ModelImage>

View source

public ModelImage(byte[] Data, string MediaType, int Width, int Height)

An image a model reads: the encoded bytes of a screenshot, already sized for the model.

Parameters

Name Type Description
Data byte[] The encoded image.
MediaType string The media type of <code class=“paramref”>Data</code>, such as image/png.
Width int Width in image pixels.
Height int Height in image pixels.

View source

public byte[] Data { get; init; }

The encoded image.

Value: byte[]

View source

public int Height { get; init; }

Height in image pixels.

Value: int

View source

public string MediaType { get; init; }

The media type of <code class=“paramref”>Data</code>, such as image/png.

Value: string

View source

public int Width { get; init; }

Width in image pixels.

Value: int

View source