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>
Constructors
Section titled “Constructors”ModelImage(byte[], string, int, int)
Section titled “ModelImage(byte[], string, int, int)”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. |
Properties
Section titled “Properties”public byte[] Data { get; init; }The encoded image.
Value: byte[]
Height
Section titled “Height”public int Height { get; init; }Height in image pixels.
Value: int
MediaType
Section titled “MediaType”public string MediaType { get; init; }The media type of <code class=“paramref”>Data</code>, such as image/png.
Value: string
public int Width { get; init; }Width in image pixels.
Value: int