Share via


ImageGeneratorExtensions Class

Definition

Provides extension methods for IImageGenerator.

public ref class ImageGeneratorExtensions abstract sealed
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
public static class ImageGeneratorExtensions
public static class ImageGeneratorExtensions
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
type ImageGeneratorExtensions = class
type ImageGeneratorExtensions = class
Public Module ImageGeneratorExtensions
Inheritance
ImageGeneratorExtensions
Attributes

Methods

EditImageAsync(IImageGenerator, DataContent, String, ImageGenerationOptions, CancellationToken)

Edits a single image based on the original image and the specified prompt.

EditImageAsync(IImageGenerator, ReadOnlyMemory<Byte>, String, String, ImageGenerationOptions, CancellationToken)

Edits a single image based on a byte array and the specified prompt.

EditImagesAsync(IImageGenerator, IEnumerable<AIContent>, String, ImageGenerationOptions, CancellationToken)

Edits images based on original images and a text prompt.

GenerateImagesAsync(IImageGenerator, String, ImageGenerationOptions, CancellationToken)

Generates images based on a text prompt.

GetRequiredService(IImageGenerator, Type, Object)

Asks the IImageGenerator for an object of the specified type serviceType and throws an exception if one isn't available.

GetRequiredService<TService>(IImageGenerator, Object)

Asks the IImageGenerator for an object of type TService and throws an exception if one isn't available.

GetService<TService>(IImageGenerator, Object)

Asks the IImageGenerator for an object of type TService.

Applies to