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

# LayerMaskData

## Overview

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

Defines the base class for PSD layer mask data.

This class declares 1 method for LayerMaskData 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 3 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `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 LayerMaskData instance. |

## See Also

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