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

extractLayerImage
void extractLayerImage()

Extracts the layer image

height
uint height()

Height

isLayerGroup
bool isLayerGroup()

Returns true if the layer is a group

isLayerUseful
bool isLayerUseful()

Is the layer useful?

size
uint[2] size()

Gets the size of this layer

totalDataCount
size_t totalDataCount()

Gets total data count

width
uint width()

Width

Unions

__anonymous
union __anonymous

Bounding box for layer

Variables

blendModeKey
uint blendModeKey;

Blending mode

channels
ChannelInfo[] channels;

Channels in layer

clipping
bool clipping;

Whether clipping is base or non-base

data
ubyte[] data;

The data of the layer

filePtr
File filePtr;
Undocumented in source.
flags
LayerFlags flags;

Flags for the layer

isVisible
bool isVisible;

Whether the layer is visible or not

layerMask
LayerMask[] layerMask;

The layer's user mask, if any.

name
string name;

Name of layer

opacity
ubyte opacity;

Opacity of the layer

type
LayerType type;

The type of layer

vectorMask
VectorMask[] vectorMask;

The layer's vector mask, if any.

Meta