Struct ImageProperties
[JsonConverter(typeof(ImageProperties.ImagePropertiesConverter))]
public struct ImageProperties
- Inherited Members
Constructors
ImageProperties(ImageFormat, ReadOnlyMemory<byte>, bool)
public ImageProperties(ImageFormat format, ReadOnlyMemory<byte> data, bool isBase64 = false)
Parameters
format
ImageFormatThe format of the image.
data
ReadOnlyMemory<byte>The data of the image.
isBase64
boolWhether
data
is in Base64 format.
Properties
Data
The data of the image.
public ReadOnlyMemory<byte> Data { readonly get; set; }
Property Value
Empty
An empty ImageProperties instance.
public static ImageProperties Empty { get; }
Property Value
Format
The format of the image.
public ImageFormat Format { readonly get; set; }
Property Value
IsBase64
Whether Data is in Base64 format.
public bool IsBase64 { readonly get; set; }
Property Value
Methods
WithData(ReadOnlyMemory<byte>)
The data of the image.
public ImageProperties WithData(ReadOnlyMemory<byte> data)
Parameters
data
ReadOnlyMemory<byte>
Returns
WithFormat(ImageFormat)
The format of the image.
public ImageProperties WithFormat(ImageFormat format)
Parameters
format
ImageFormat
Returns
WithIsBase64(bool)
Whether Data is in Base64 format.
public ImageProperties WithIsBase64(bool isBase64 = true)
Parameters
isBase64
bool