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

# LayerAndMaskSectionWriter

## Overview

`LayerAndMaskSectionWriter` is a class in Aspose.PSD FOSS for Python.

Writes PSD/PSB Layer and Mask Information sections.

This class declares 1 method for LayerAndMaskSectionWriter objects in Python programs.
Available methods include: `save`.
Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `save(section: LayerAndMaskSection, writer: BigEndianWriter, is_large_document: bool)` | Writes the section while preserving raw bytes for no-mutation saves. |

## See Also

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