LayerMaskDataShort Class

Summary: Defines the LayerMaskDataShort class which contains information about the mask data in the PSD file layer
when the layer has only raster or vector mask but not both. Otherwise, a LayerMaskDataFull is used.
If the layer has only a raster mask the ImageData contains the raster mask data bytes.
If the layer has only a vector mask the ImageData contains the vector mask rasterized (cached) data bytes.
The LayerMaskData.image_data bytes length should be equal Width * Height of LayerMaskData.mask_rectangle properties.

Module: aspose.psd.fileformats.psd.layers

Full Name: aspose.psd.fileformats.psd.layers.LayerMaskDataShort

Inheritance: LayerMaskData

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
LayerMaskDataShort()Initializes a new instance of the LayerMaskDataShort class

Properties

NameTypeAccessDescription
bottomintr/wGets or sets the bottom layer mask position.
data_sizeintrGets the size of the layer mask mask data.
default_colorbyter/wGets or sets the default color.
flagsLayerMaskFlagsr/wGets or sets the layer mask flags.
image_databyter/wGets or sets the layer mask data (or combined / final mask if there is a vector mask) in the PSD file.
leftintr/wGets or sets the left layer mask position.
mask_rectangleRectangler/wGets or sets the mask Rectangle of the layer mask in the PSD file.
It takes left, right, top and bottom properties and creates Rectangle
paddingshortr/wGets or sets the layer mask padding.
rightintr/wGets or sets the right layer mask position.
topintr/wGets or sets the top layer mask position.

Constructor: LayerMaskDataShort()

 LayerMaskDataShort() 

Initializes a new instance of the LayerMaskDataShort class