AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class InpaintPrompt

    A specialized prompt for inpainting tasks.
    This class is used to pass the instruction and the image to the inpainting model for GENInpaintTask.

    Inheritance
    object
    PromptBase
    InpaintPrompt
    Implements
    IPrompt
    Inherited Members
    PromptBase.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class InpaintPrompt : PromptBase, IPrompt

    Constructors

    InpaintPrompt(string, Texture2D, Texture2D)

    Declaration
    public InpaintPrompt(string instruction, Texture2D image, Texture2D mask = null)
    Parameters
    Type Name Description
    string instruction
    Texture2D image
    Texture2D mask

    Fields

    image

    The image to be edited.

    Declaration
    public Texture2D image
    Field Value
    Type Description
    Texture2D

    instruction

    The instruction for the inpainting task.
    This should be a clear and concise instruction on what to edit in the image.

    Declaration
    public string instruction
    Field Value
    Type Description
    string

    mask

    Optional. The mask to be used for inpainting.
    The mask should be a black and white image where the white area is the area to be edited.

    Declaration
    public Texture2D mask
    Field Value
    Type Description
    Texture2D

    Properties

    IsValid

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Methods

    GetText()

    Declaration
    public override string GetText()
    Returns
    Type Description
    string
    Overrides
    PromptBase.GetText()

    Implements

    IPrompt

    Extension Methods

    GENPixelArtTaskExtensions.GENPixelAnimation(InpaintPrompt)
    GENPixelArtTaskExtensions.GENPixelInpaint(InpaintPrompt)
    GenerativeTaskExtensions.GENInpaint(InpaintPrompt)
    In this article
    Back to top Generated by DocFX