Język

ConfigureOptionsImageGenerator Klasa

Definicja

Reprezentuje generator obrazów delegowania, który konfiguruje ImageGenerationOptions wystąpienie używane przez pozostałą część potoku.

public ref class ConfigureOptionsImageGenerator sealed : Microsoft::Extensions::AI::DelegatingImageGenerator
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public sealed class ConfigureOptionsImageGenerator : Microsoft.Extensions.AI.DelegatingImageGenerator
public sealed class ConfigureOptionsImageGenerator : Microsoft.Extensions.AI.DelegatingImageGenerator
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type ConfigureOptionsImageGenerator = class
    inherit DelegatingImageGenerator
type ConfigureOptionsImageGenerator = class
    inherit DelegatingImageGenerator
Public NotInheritable Class ConfigureOptionsImageGenerator
Inherits DelegatingImageGenerator
Dziedziczenie
ConfigureOptionsImageGenerator
Atrybuty

Konstruktory

Nazwisko Opis
ConfigureOptionsImageGenerator(IImageGenerator, Action<ImageGenerationOptions>)

Inicjuje nowe wystąpienie ConfigureOptionsImageGenerator klasy z określonym configure wywołaniem zwrotnym.

Właściwości

Nazwisko Opis
InnerGenerator

Pobiera wewnętrzny IImageGeneratorelement .

(Odziedziczone po DelegatingImageGenerator)

Metody

Nazwisko Opis
Dispose()

Wykonuje zadania zdefiniowane przez aplikację skojarzone z zwalnianiem, wydawaniem lub resetowaniem niezarządzanych zasobów.

(Odziedziczone po DelegatingImageGenerator)
Dispose(Boolean)

Udostępnia mechanizm zwalniania niezarządzanych zasobów.

(Odziedziczone po DelegatingImageGenerator)
GenerateAsync(ImageGenerationRequest, ImageGenerationOptions, CancellationToken)

Reprezentuje generator obrazów delegowania, który konfiguruje ImageGenerationOptions wystąpienie używane przez pozostałą część potoku.

GetService(Type, Object)

IImageGenerator Pyta o obiekt określonego typu serviceType.

(Odziedziczone po DelegatingImageGenerator)

Metody rozszerzania

Nazwisko Opis
AsBuilder(IImageGenerator)

Tworzy nowy ImageGeneratorBuilder element przy użyciu innerGenerator jako generator wewnętrzny.

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

Edytuje pojedynczy obraz na podstawie oryginalnego obrazu i określonego monitu.

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

Edytuje pojedynczy obraz na podstawie tablicy bajtów i określonego monitu.

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

Edytuje obrazy na podstawie oryginalnych obrazów i monitu tekstowego.

GenerateImagesAsync(IImageGenerator, String, ImageGenerationOptions, CancellationToken)

Generuje obrazy na podstawie monitu tekstowego.

GetRequiredService(IImageGenerator, Type, Object)

IImageGenerator Pyta o obiekt określonego typu serviceType i zgłasza wyjątek, jeśli nie jest dostępny.

GetRequiredService<TService>(IImageGenerator, Object)

IImageGenerator Pyta o obiekt typu TService i zgłasza wyjątek, jeśli nie jest dostępny.

GetService<TService>(IImageGenerator, Object)

IImageGenerator Pyta o obiekt typu TService.

Dotyczy