---
Product: psd
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/psd/net/compressionmethod
---

# CompressionMethod

## Overview

`CompressionMethod` is an enum in Aspose.PSD FOSS for .NET.
Inherits from: `short`.

Defines the compression methods used for image data in PSD files.

This enumeration defines 4 values: `Raw`, `RLE`, `ZipWithoutPrediction`, `ZipWithPrediction`.

## Values

| Value | Description |
|-------|-------------|
| `Raw` | Raw (uncompressed) data. |
| `RLE` | RLE (Run-Length Encoded) compression. |
| `ZipWithoutPrediction` | ZIP (lossless) compression. |
| `ZipWithPrediction` | ZIP compression with prediction. |

## See Also

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