public final class LayerMaskDataShort extends LayerMaskData
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.ImageData
(LayerMaskData.getImageData()
/LayerMaskData.setImageData(byte[])
)
bytes length should be equal Width * Height of LayerMaskData.MaskRectangle
(LayerMaskData.getMaskRectangle()
/LayerMaskData.setMaskRectangle(Rectangle)
) properties.
Constructor and Description |
---|
LayerMaskDataShort()
Initializes a new instance of the
LayerMaskDataShort class. |
Modifier and Type | Method and Description |
---|---|
short |
getPadding()
Gets or sets the layer mask padding.
|
void |
setPadding(short value)
Gets or sets the layer mask padding.
|
getBottom, getDataSize, getDefaultColor, getFlags, getImageData, getLeft, getMaskRectangle, getRight, getTop, setBottom, setDefaultColor, setFlags, setImageData, setLeft, setMaskRectangle, setRight, setTop
public LayerMaskDataShort()
Initializes a new instance of the LayerMaskDataShort
class.