AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class GENInpaintTask

    Task for editing an existing image based on a text prompt and optional mask (OpenAI or Google Gemini).

    Inheritance
    object
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>
    GENInpaintTask
    Implements
    IGENTask
    Inherited Members
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.token
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.enableHistory
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.isCanceled
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.outputMimeType
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.Cancel()
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetOption(string, object)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.TryGetOption<T>(string, out T)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetModel(Model)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetCount(int)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetOutputPath(string)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetSender(string)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetIgnoreLogs(bool)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.EnablePromptHistory(bool)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetTextToTarget(GeneratedText)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetImageToTarget(GeneratedImage)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.SetAudioToTarget(GeneratedAudio)
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.ExecuteAsync()
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class GENInpaintTask : GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>, IGENTask

    Constructors

    GENInpaintTask(InpaintPrompt, Object)

    Declaration
    public GENInpaintTask(InpaintPrompt prompt, UnityEngine.Object target = null)
    Parameters
    Type Name Description
    InpaintPrompt prompt
    Object target

    Properties

    outputMimeType

    Declaration
    public override MIMEType outputMimeType { get; set; }
    Property Value
    Type Description
    MIMEType
    Overrides
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.outputMimeType

    Methods

    ExecuteAsync()

    Executes the task and returns the generated result.

    Declaration
    public override UniTask<GeneratedImage> ExecuteAsync()
    Returns
    Type Description
    UniTask<GeneratedImage>
    Overrides
    GENTask<GENInpaintTask, InpaintPrompt, GeneratedImage>.ExecuteAsync()

    Implements

    IGENTask

    Extension Methods

    FluentAPIExtensions.SetAspectRatio<TTask>(TTask, AspectRatio)
    FluentAPIExtensions.SetPersonGeneration<TTask>(TTask, PersonGeneration)
    FluentAPIExtensions.SetMask(GENInpaintTask, Texture2D)
    FluentAPIExtensions.SetSize<T>(T, ImageSize)
    In this article
    Back to top Generated by DocFX