Scripting API

Scripting API

SourcePicture

Record in Abyss.Core, from Abyss.Core.

A source image as it is, for the Sprite Editor to draw it and cut it in its own pixels.

public record SourcePicture

Constructors

SourcePicture

public SourcePicture(uint Width, uint Height, uint SourceWidth, uint SourceHeight, byte[] Pixels)

A source image as it is, for the Sprite Editor to draw it and cut it in its own pixels.

Parameters

  • Width: How wide what is drawn is.
  • Height: How tall.
  • SourceWidth: How wide the source is.
  • SourceHeight: How tall.
  • Pixels: Four bytes a pixel, a row at a time from the top, its alpha not multiplied in.

Properties

Width

public uint Width { get; init; }

How wide what is drawn is.

Height

public uint Height { get; init; }

How tall.

SourceWidth

public uint SourceWidth { get; init; }

How wide the source is.

SourceHeight

public uint SourceHeight { get; init; }

How tall.

Pixels

public byte[] Pixels { get; init; }

Four bytes a pixel, a row at a time from the top, its alpha not multiplied in.