Search Results for

    Show / Hide Table of Contents

    Class PixelRotationRequest

    Request for rotating pixel-art viewpoint/direction.

    Inheritance
    object
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>
    PixelRotationRequest
    Implements
    IGenerativeRequest
    Inherited Members
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.ModelType
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.Size
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.NegativePrompt
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.NoBackground
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.PaletteImage
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.SetSize(MediaSize)
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.SetSize(SpriteSize)
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.SetNegativePrompt(string)
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.SetNoBackground(bool)
    PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>.SetPaletteImage(Texture2D)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.ModelType
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.Api
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.Prompt
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.Model
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.N
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.Seed
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.MeasureLatency
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.OnLatencyMeasured
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.RequestedAt
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.RecordOptions
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.RecordedContext
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetModel(Api, string)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetModel(ModelBase)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetCount(int)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetN(int)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetSeed(long)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetRecordOptions(bool?, bool?, string, string, GenerationRecord, RecordMerger, Action<GenerationRecord>)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetRecordOptions(GenerationRecordOptions)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetMeasureLatency(Action<double>)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetMeasureLatency(bool, Action<double>)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.SetPlaygroundSettings(string, string, string, bool, Action<double>, Action<GenerationRecord>)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.ExecuteAsync(CancellationToken)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.ExecuteAsyncT<T>(CancellationToken)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.ProcessPostRequestTasks<T>(Generated<T>)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.ProcessPostRequestTasks(IResult)
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.GetPrompt()
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.GetPromptStringToRecord()
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.Api
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.RequestType
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.HttpOptions
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.DownloadOptions
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.Sender
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.LogOptions
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.ContentType
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.ResponseType
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.IsCanceled
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.Stream
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SafetyIdentifier
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.ServiceTier
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.Metadata
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.ProviderOptions
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.Options
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetSender(string)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetLogOptions(CurlLogOptions)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetOutputPath(string)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetOutputPath(string, string)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetOutputDirectory(string)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetDownloadOptions(DownloadOptions)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetRequestMimeType(MimeType)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetResponseMimeType(MimeType)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetStream(bool)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetMetadata(ServerDictionary)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetSafetyIdentifier(string)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetProviderOptions(IPixelArtRotationOptions)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.SetSpecificOptions(IPixelArtRotationOptions)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.GetConfig<T>()
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.ExecuteAsync(CancellationToken)
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.Cancel()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.PixelArt
    Assembly: Glitch9.AIDevKit.PixelArt.dll
    Syntax
    public sealed class PixelRotationRequest : PixelArtRequest<PixelRotationRequest, ImagePrompt, IPixelArtRotationOptions>, IGenerativeRequest

    Constructors

    | Edit this page View Source

    PixelRotationRequest(ImagePrompt)

    Creates a pixel-art rotation request.

    Declaration
    public PixelRotationRequest(ImagePrompt prompt)
    Parameters
    Type Name Description
    ImagePrompt prompt

    Properties

    | Edit this page View Source

    DirectionChange

    Optional. How many degrees to rotate the subject Min: -180, Max: 180

    Declaration
    public int? DirectionChange { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    FallbackModel

    Declaration
    protected override string FallbackModel { get; }
    Property Value
    Type Description
    string
    Overrides
    GenerativeRequest<PixelRotationRequest, ImagePrompt, IImageAsset, IPixelArtRotationOptions>.FallbackModel
    | Edit this page View Source

    FromDirection

    Optional. Source direction.

    Declaration
    public SpriteDirection? FromDirection { get; set; }
    Property Value
    Type Description
    SpriteDirection?
    | Edit this page View Source

    FromView

    Optional. Source camera view.

    Declaration
    public SpriteCameraView? FromView { get; set; }
    Property Value
    Type Description
    SpriteCameraView?
    | Edit this page View Source

    ImageGuidanceScale

    Optional. How closely to follow the reference image Min: 1, Max: 20, Default: 3

    Declaration
    public float? ImageGuidanceScale { get; set; }
    Property Value
    Type Description
    float?
    | Edit this page View Source

    InitialImage

    Optional. A base64 encoded image.

    Declaration
    public File<Texture2D> InitialImage { get; set; }
    Property Value
    Type Description
    File<Texture2D>
    | Edit this page View Source

    ObliqueProjection

    Optional. Generate in oblique projection

    Declaration
    public bool? ObliqueProjection { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    RequestType

    The endpoint type for this

    Declaration
    public override RequestType RequestType { get; }
    Property Value
    Type Description
    RequestType
    Overrides
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.RequestType
    | Edit this page View Source

    ToDirection

    Optional. Target direction.

    Declaration
    public SpriteDirection? ToDirection { get; set; }
    Property Value
    Type Description
    SpriteDirection?
    | Edit this page View Source

    ToView

    Optional. Target camera view.

    Declaration
    public SpriteCameraView? ToView { get; set; }
    Property Value
    Type Description
    SpriteCameraView?
    | Edit this page View Source

    ViewChange

    Optional. How many degrees to tilt the subject Min: -90, Max: 90

    Declaration
    public int? ViewChange { get; set; }
    Property Value
    Type Description
    int?

    Methods

    | Edit this page View Source

    ExecuteAsyncInternal()

    Executes the actual task logic. Must be implemented in derived classes.

    Declaration
    protected override UniTask<Generated<IImageAsset>> ExecuteAsyncInternal()
    Returns
    Type Description
    UniTask<Generated<IImageAsset>>
    Overrides
    UnifiedApiRequestBase<PixelRotationRequest, Generated<IImageAsset>, IPixelArtRotationOptions>.ExecuteAsyncInternal()
    | Edit this page View Source

    SetDescription(string)

    Sets description text for rotation guidance.

    Declaration
    public PixelRotationRequest SetDescription(string description)
    Parameters
    Type Name Description
    string description
    Returns
    Type Description
    PixelRotationRequest
    | Edit this page View Source

    SetDirectionChange(int)

    Sets direction change angle.

    Declaration
    public PixelRotationRequest SetDirectionChange(int directionChange)
    Parameters
    Type Name Description
    int directionChange
    Returns
    Type Description
    PixelRotationRequest
    | Edit this page View Source

    SetDirectionRange(SpriteDirection?, SpriteDirection?)

    Sets source and target direction values.

    Declaration
    public PixelRotationRequest SetDirectionRange(SpriteDirection? fromDirection, SpriteDirection? toDirection)
    Parameters
    Type Name Description
    SpriteDirection? fromDirection
    SpriteDirection? toDirection
    Returns
    Type Description
    PixelRotationRequest
    | Edit this page View Source

    SetImageGuidanceScale(float)

    Sets image guidance scale.

    Declaration
    public PixelRotationRequest SetImageGuidanceScale(float imageGuidanceScale)
    Parameters
    Type Name Description
    float imageGuidanceScale
    Returns
    Type Description
    PixelRotationRequest
    | Edit this page View Source

    SetInitialImage(Texture2D)

    Sets initial image.

    Declaration
    public PixelRotationRequest SetInitialImage(Texture2D initialImage)
    Parameters
    Type Name Description
    Texture2D initialImage
    Returns
    Type Description
    PixelRotationRequest
    | Edit this page View Source

    SetObliqueProjection(bool)

    Sets oblique projection mode.

    Declaration
    public PixelRotationRequest SetObliqueProjection(bool obliqueProjection)
    Parameters
    Type Name Description
    bool obliqueProjection
    Returns
    Type Description
    PixelRotationRequest
    | Edit this page View Source

    SetView(SpriteCameraView?, SpriteCameraView?)

    Sets source and target view values.

    Declaration
    public PixelRotationRequest SetView(SpriteCameraView? fromView, SpriteCameraView? toView)
    Parameters
    Type Name Description
    SpriteCameraView? fromView
    SpriteCameraView? toView
    Returns
    Type Description
    PixelRotationRequest
    | Edit this page View Source

    SetViewChange(int)

    Sets view change angle.

    Declaration
    public PixelRotationRequest SetViewChange(int viewChange)
    Parameters
    Type Name Description
    int viewChange
    Returns
    Type Description
    PixelRotationRequest

    Implements

    IGenerativeRequest

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation