Class PixelInpaintingRequest
Request for pixel-art inpainting tasks.
Inheritance
PixelInpaintingRequest
Implements
Inherited Members
PixelArtRequest<PixelInpaintingRequest, ImagePrompt, IPixelArtInpaintingOptions>.SetSize(SpriteSize)
Namespace: Glitch9.AIDevKit.PixelArt
Assembly: Glitch9.AIDevKit.PixelArt.dll
Syntax
public sealed class PixelInpaintingRequest : PixelArtRequest<PixelInpaintingRequest, ImagePrompt, IPixelArtInpaintingOptions>, IGenerativeRequest
Constructors
| Edit this page View SourcePixelInpaintingRequest(ImagePrompt)
Creates a pixel-art inpainting request.
Declaration
public PixelInpaintingRequest(ImagePrompt prompt)
Parameters
| Type | Name | Description |
|---|---|---|
| ImagePrompt | prompt |
Properties
| Edit this page View SourceFallbackModel
Declaration
protected override string FallbackModel { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceRequestType
The endpoint type for this
Declaration
public override RequestType RequestType { get; }
Property Value
| Type | Description |
|---|---|
| RequestType |
Overrides
Methods
| Edit this page View SourceExecuteAsyncInternal()
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
| Edit this page View SourceSetMaskImage(Texture2D)
Sets a mask image on the prompt for inpainting.
Declaration
public PixelInpaintingRequest SetMaskImage(Texture2D maskImage)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | maskImage |
Returns
| Type | Description |
|---|---|
| PixelInpaintingRequest |