AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class FluentAPIExtensions

    Inheritance
    object
    FluentAPIExtensions
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: .dll
    Syntax
    public static class FluentAPIExtensions

    Methods

    SetMask(GENInpaintTask, Texture2D)

    Sets the mask texture for inpainting (OpenAI only).

    Declaration
    public static GENInpaintTask SetMask(this GENInpaintTask task, Texture2D mask)
    Parameters
    Type Name Description
    GENInpaintTask task
    Texture2D mask
    Returns
    Type Description
    GENInpaintTask

    SetQuality(GENImageTask, ImageQuality)

    Sets the quality of the generated image (OpenAI only).

    Declaration
    public static GENImageTask SetQuality(this GENImageTask task, ImageQuality quality)
    Parameters
    Type Name Description
    GENImageTask task
    ImageQuality quality
    Returns
    Type Description
    GENImageTask

    SetSize<T>(T, ImageSize)

    Sets the size of the generated image (OpenAI only).

    Declaration
    public static T SetSize<T>(this T task, ImageSize size) where T : IGENTask
    Parameters
    Type Name Description
    T task
    ImageSize size

    The size of the generated image.

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    SetStyle(GENImageTask, ImageStyle)

    Sets the visual style of the image (OpenAI only).

    Declaration
    public static GENImageTask SetStyle(this GENImageTask task, ImageStyle style)
    Parameters
    Type Name Description
    GENImageTask task
    ImageStyle style
    Returns
    Type Description
    GENImageTask
    In this article
    Back to top Generated by DocFX