
**Summary:** Defines the LayerMaskDataShort class which contains information about the mask data in the PSD file layer<br/>            when the layer has only raster or vector mask but not both. Otherwise, a [LayerMaskDataFull](/psd/python-net/aspose.psd.fileformats.psd.layers/layermaskdatafull/) is used.<br/>            If the layer has only a raster mask the ImageData contains the raster mask data bytes.<br/>            If the layer has only a vector mask the ImageData contains the vector mask rasterized (cached) data bytes.<br/>            The [LayerMaskData.image_data](/psd/python-net/aspose.psd.fileformats.psd.layers/layermaskdata/) bytes length should be equal Width * Height of [LayerMaskData.mask_rectangle](/psd/python-net/aspose.psd.fileformats.psd.layers/layermaskdata/) properties.

**Module:** [aspose.psd.fileformats.psd.layers](/psd/python-net/aspose.psd.fileformats.psd.layers/)

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

**Inheritance:** LayerMaskData

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [LayerMaskDataShort()](#LayerMaskDataShort__1) | Initializes a new instance of the LayerMaskDataShort class |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| bottom | int | r/w | Gets or sets the bottom layer mask position. |
| data_size | int | r | Gets the size of the layer mask mask data. |
| default_color | byte | r/w | Gets or sets the default color. |
| flags | [LayerMaskFlags](/psd/python-net/aspose.psd.fileformats.psd.layers/layermaskflags) | r/w | Gets or sets the layer mask flags. |
| image_data | byte | r/w | Gets or sets the layer mask data (or combined / final mask if there is a vector mask) in the PSD file. |
| left | int | r/w | Gets or sets the left layer mask position. |
| mask_rectangle | [Rectangle](/psd/python-net/aspose.psd/rectangle) | r/w | Gets or sets the mask [Rectangle](/psd/python-net/aspose.psd/rectangle/) of the layer mask in the PSD file.<br/>            It takes left, right, top and bottom properties and creates [Rectangle](/psd/python-net/aspose.psd/rectangle/) |
| padding | short | r/w | Gets or sets the layer mask padding. |
| right | int | r/w | Gets or sets the right layer mask position. |
| top | int | r/w | Gets or sets the top layer mask position. |


### Constructor: LayerMaskDataShort() {#LayerMaskDataShort__1}


```
 LayerMaskDataShort() 
```

Initializes a new instance of the LayerMaskDataShort class

