Layer

A layer

Members

Functions

area
size_t area()

Area of the layer

center
uint[2] center()

Gets the center coordinates of the layer

dataLengthUncompressed
size_t dataLengthUncompressed()

Length of data

height
uint height()

Height

width
uint width()

Width

Unions

__anonymous
union __anonymous

Bounding box for layer

Variables

blending
BlendingMode blending;

Blending mode

channels
ChannelInfo[] channels;

Channels in layer

children
Layer[] children;

Layers that are the children of this layer

clipping
bool clipping;

Whether clipping is base or non-base

data
ubyte[] data;

The data of the layer

flags
LayerFlags flags;

Flags for the layer

isGroup
bool isGroup;

Whether this layer is a group

name
string name;

Name of layer

opacity
ubyte opacity;

Opacity of the layer

Meta