Share via


ImageContent Constructors

Definition

Overloads

ImageContent()

Initializes a new instance of the ImageContent class.

ImageContent(String)

Initializes a new instance of the ImageContent class.

ImageContent(Uri)

Initializes a new instance of the ImageContent class.

ImageContent(ReadOnlyMemory<Byte>, String)

Initializes a new instance of the ImageContent class.

ImageContent()

Initializes a new instance of the ImageContent class.

[System.Text.Json.Serialization.JsonConstructor]
public ImageContent ();
Public Sub New ()
Attributes

Applies to

ImageContent(String)

Initializes a new instance of the ImageContent class.

public ImageContent (string dataUri);
new Microsoft.SemanticKernel.ImageContent : string -> Microsoft.SemanticKernel.ImageContent
Public Sub New (dataUri As String)

Parameters

dataUri
String

DataUri of the image

Applies to

ImageContent(Uri)

Initializes a new instance of the ImageContent class.

public ImageContent (Uri uri);
new Microsoft.SemanticKernel.ImageContent : Uri -> Microsoft.SemanticKernel.ImageContent
Public Sub New (uri As Uri)

Parameters

uri
Uri

The URI of image.

Applies to

ImageContent(ReadOnlyMemory<Byte>, String)

Initializes a new instance of the ImageContent class.

public ImageContent (ReadOnlyMemory<byte> data, string? mimeType);
new Microsoft.SemanticKernel.ImageContent : ReadOnlyMemory<byte> * string -> Microsoft.SemanticKernel.ImageContent
Public Sub New (data As ReadOnlyMemory(Of Byte), mimeType As String)

Parameters

data
ReadOnlyMemory<Byte>

Byte array of the image

mimeType
String

Mime type of the image

Applies to