AI DevKit
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
    TaskBase<GENInpaintTask, GeneratedImage>
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>
    GENImageGenerationTask<GENInpaintTask, InpaintPrompt>
    GENInpaintTask
    Implements
    IGENTask
    Inherited Members
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.Api
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.Prompt
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.ModelId
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.OutputFilePath
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.OutputFileNote
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.RecordHistory
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.SaveGeneratedContents
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.N
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.MaxN
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.Options
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.SetModel(Api, string)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.SetModel(Model)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.SetCount(int)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.SaveContentsTo(string, string)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.EnablePromptHistory(bool)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.SetRequestMimeType(MIMEType)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.SetResponseMimeType(MIMEType)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.SetOptions(IGENImageOptions)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.ExecuteAsync()
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.YieldAsync()
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.ResolveOutputPath(Api?, string)
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.GetPrompt()
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.YieldAsyncINTERNAL()
    GENTask<GENInpaintTask, IGENImageOptions, InpaintPrompt, GeneratedImage>.CreateMergedHistoryRecordINTERNAL(List<GeneratedImage>)
    TaskBase<GENInpaintTask, GeneratedImage>.Method
    TaskBase<GENInpaintTask, GeneratedImage>.Cts
    TaskBase<GENInpaintTask, GeneratedImage>.Token
    TaskBase<GENInpaintTask, GeneratedImage>.Api
    TaskBase<GENInpaintTask, GeneratedImage>.Sender
    TaskBase<GENInpaintTask, GeneratedImage>.IgnoreLogs
    TaskBase<GENInpaintTask, GeneratedImage>.IsCanceled
    TaskBase<GENInpaintTask, GeneratedImage>.RequestMimeType
    TaskBase<GENInpaintTask, GeneratedImage>.ResponseMimeType
    TaskBase<GENInpaintTask, GeneratedImage>.IsWrapperTask
    TaskBase<GENInpaintTask, GeneratedImage>.SetSender(string)
    TaskBase<GENInpaintTask, GeneratedImage>.SetIgnoreLogs(bool)
    TaskBase<GENInpaintTask, GeneratedImage>.SetCancellationToken(CancellationToken)
    TaskBase<GENInpaintTask, GeneratedImage>.ExecuteAsync()
    TaskBase<GENInpaintTask, GeneratedImage>.ExecuteAsyncINTERNAL()
    TaskBase<GENInpaintTask, GeneratedImage>.ExecuteAsync<T>()
    TaskBase<GENInpaintTask, GeneratedImage>.CancelTask()
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class GENInpaintTask : GENImageGenerationTask<GENInpaintTask, InpaintPrompt>, IGENTask

    Constructors

    GENInpaintTask(InpaintPrompt)

    Declaration
    public GENInpaintTask(InpaintPrompt prompt)
    Parameters
    Type Name Description
    InpaintPrompt prompt

    Fields

    mask

    Declaration
    public Texture2D mask
    Field Value
    Type Description
    Texture2D

    Properties

    Method

    Declaration
    public override string Method { get; }
    Property Value
    Type Description
    string
    Overrides
    TaskBase<GENInpaintTask, GeneratedImage>.Method

    Methods

    ExecuteAsyncINTERNAL()

    Declaration
    protected override UniTask<GeneratedImage> ExecuteAsyncINTERNAL()
    Returns
    Type Description
    UniTask<GeneratedImage>
    Overrides
    TaskBase<GENInpaintTask, GeneratedImage>.ExecuteAsyncINTERNAL()

    SetMask(Texture2D)

    Sets the mask texture for inpainting. The mask should be a black and white image where white areas are inpainted.

    Declaration
    public GENInpaintTask SetMask(Texture2D mask)
    Parameters
    Type Name Description
    Texture2D mask
    Returns
    Type Description
    GENInpaintTask

    Implements

    IGENTask
    In this article
    Back to top Generated by DocFX