Scripting API

Scripting API

TexturePreview

Record in Abyss.Core, from Abyss.Core.

One mipmap of an imported texture, as a preview shows it: four bytes a pixel, opaque.

public record TexturePreview

Constructors

TexturePreview

public TexturePreview(uint Width, uint Height, byte[] Pixels)

One mipmap of an imported texture, as a preview shows it: four bytes a pixel, opaque.

Parameters

  • Width: How wide.
  • Height: How tall.
  • Pixels: Four bytes a pixel, a row at a time from the top.

Properties

Width

public uint Width { get; init; }

How wide.

Height

public uint Height { get; init; }

How tall.

Pixels

public byte[] Pixels { get; init; }

Four bytes a pixel, a row at a time from the top.