public final class LayerMaskDataFull extends LayerMaskData
Defines the LayerMaskDataFull class which contains information about the mask data in the PSD file layer
when the layer has both layer and vector masks. Otherwise, a LayerMaskDataShort
is used.
The ImageData contains the raster mask and the rasterized vector mask combined.
The ImageData bytes length should be equal MaskRectangle.Width * MaskRectangle.Height properties.
Constructor and Description |
---|
LayerMaskDataFull()
Initializes a new instance of the
LayerMaskDataFull class. |
Modifier and Type | Method and Description |
---|---|
byte |
getBackgroundColor()
Gets or sets the background color.
|
int |
getEnclosingBottom()
Gets or sets the enclosing bottom raster mask position in the PSD image layer.
|
int |
getEnclosingLeft()
Gets or sets the enclosing left raster mask position in the PSD file layer.
|
int |
getEnclosingRight()
Gets or sets the enclosing right raster mask position in the PSD file layer.
|
int |
getEnclosingTop()
Gets or sets the enclosing top position of the raster mask in the PSD image layer.
|
byte |
getRealFlags()
Gets or sets the layer mask flags that is used for user / raster mask.
|
byte[] |
getUserMaskData()
Gets or sets the user (raster) mask data of a layer in the PSD file.
|
Rectangle |
getUserMaskRectangle()
Gets or sets the user mask (enclosing) rectangle in the PSD image layer.
|
void |
setBackgroundColor(byte value)
Gets or sets the background color.
|
void |
setEnclosingBottom(int value)
Gets or sets the enclosing bottom raster mask position in the PSD image layer.
|
void |
setEnclosingLeft(int value)
Gets or sets the enclosing left raster mask position in the PSD file layer.
|
void |
setEnclosingRight(int value)
Gets or sets the enclosing right raster mask position in the PSD file layer.
|
void |
setEnclosingTop(int value)
Gets or sets the enclosing top position of the raster mask in the PSD image layer.
|
void |
setRealFlags(byte value)
Gets or sets the layer mask flags that is used for user / raster mask.
|
void |
setUserMaskData(byte[] value)
Gets or sets the user (raster) mask data of a layer in the PSD file.
|
void |
setUserMaskRectangle(Rectangle value)
Gets or sets the user mask (enclosing) rectangle in the PSD image layer.
|
getBottom, getDataSize, getDefaultColor, getFlags, getImageData, getLeft, getMaskRectangle, getRight, getTop, setBottom, setDefaultColor, setFlags, setImageData, setLeft, setMaskRectangle, setRight, setTop
public LayerMaskDataFull()
Initializes a new instance of the LayerMaskDataFull
class.
public final byte[] getUserMaskData()
Gets or sets the user (raster) mask data of a layer in the PSD file. (There is a raterized vector mask in the MaskData property).
Value: The layer image data in the PSD image.public final void setUserMaskData(byte[] value)
Gets or sets the user (raster) mask data of a layer in the PSD file. (There is a raterized vector mask in the MaskData property).
Value: The layer image data in the PSD image.public final byte getBackgroundColor()
Gets or sets the background color.
Value: The background color.public final void setBackgroundColor(byte value)
Gets or sets the background color.
Value: The background color.public final byte getRealFlags()
Gets or sets the layer mask flags that is used for user / raster mask. For vector mask the Flags property is used.
Value: The real layer mask flags.public final void setRealFlags(byte value)
Gets or sets the layer mask flags that is used for user / raster mask. For vector mask the Flags property is used.
Value: The real layer mask flags.public final int getEnclosingTop()
Gets or sets the enclosing top position of the raster mask in the PSD image layer.
Value: The top layer mask position.public final void setEnclosingTop(int value)
Gets or sets the enclosing top position of the raster mask in the PSD image layer.
Value: The top layer mask position.public final int getEnclosingLeft()
Gets or sets the enclosing left raster mask position in the PSD file layer.
Value: The left layer mask position.public final void setEnclosingLeft(int value)
Gets or sets the enclosing left raster mask position in the PSD file layer.
Value: The left layer mask position.public final int getEnclosingBottom()
Gets or sets the enclosing bottom raster mask position in the PSD image layer.
Value: The bottom layer mask position.public final void setEnclosingBottom(int value)
Gets or sets the enclosing bottom raster mask position in the PSD image layer.
Value: The bottom layer mask position.public final int getEnclosingRight()
Gets or sets the enclosing right raster mask position in the PSD file layer.
Value: The right layer mask position.public final void setEnclosingRight(int value)
Gets or sets the enclosing right raster mask position in the PSD file layer.
Value: The right layer mask position.public final Rectangle getUserMaskRectangle()
Gets or sets the user mask (enclosing) rectangle in the PSD image layer.
Value: The user maskRectangle
.public final void setUserMaskRectangle(Rectangle value)
Gets or sets the user mask (enclosing) rectangle in the PSD image layer.
Value: The user maskRectangle
.