---
Product: psd
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/psd/python/layermaskdatashort
---

# LayerMaskDataShort

## Overview

`LayerMaskDataShort` is a class in Aspose.PSD FOSS for Python.
Inherits from: `LayerMaskData`.

Defines layer mask data for layers that have only a raster or vector mask.

This class declares 1 method for LayerMaskDataShort objects in Python programs.
Available methods include: `__init__`.
Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package.
Properties: `bottom`, `data_size`, `default_color`, `flags`, `image_data`, `left`, and 4 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `padding` | - | Read/Write | Gets or sets the layer mask padding. |
| `bottom` | `int` | Read/Write | Gets or sets the bottom layer mask position. |
| `data_size` | `int` | Read | Gets the size of the layer mask data. |
| `default_color` | `int` | Read/Write | Gets or sets the default layer mask color. |
| `flags` | `LayerMaskFlags` | Read/Write | Gets or sets the layer mask flags. |
| `image_data` | `bytearray` | Read/Write | Gets or sets the layer mask image data. |
| `left` | `int` | Read/Write | Gets or sets the left layer mask position. |
| `mask_rectangle` | `Rectangle` | Read/Write | Gets or sets the mask rectangle. |
| `right` | `int` | Read/Write | Gets or sets the right layer mask position. |
| `top` | `int` | Read/Write | Gets or sets the top layer mask position. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Calls __init__ on this LayerMaskDataShort instance. |

## See Also

- [Aspose.PSD for Python — Enterprise API Reference](https://reference.aspose.com/psd/python-net/)