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

# PsdImage

## Overview

`PsdImage` is a class in Aspose.PSD FOSS for .NET.
Inherits from: `Image`.

Represents a PSD image that can be loaded, inspected, and saved without rendering.

This class declares 5 methods for PsdImage objects in .NET programs.
Available methods include: `Dispose`, `Load`, `Save`.
Public members are accessible to any .NET application after installing the Aspose.PSD FOSS for .NET package.
Properties: `ActiveLayer`, `BitsPerChannel`, `Bounds`, `ChannelsCount`, `ColorMode`, `Compression`, and 11 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Width` | `int` | Read | Gets the document width in pixels. |
| `Height` | `int` | Read | Gets the document height in pixels. |
| `BitsPerChannel` | `int` | Read | Gets the number of bits stored per channel. |
| `ColorMode` | `ColorModes` | Read/Write | Gets the PSD color mode reported by the header. |
| `Version` | `int` | Read/Write | Gets or sets the Aspose.PSD-compatible API version number. |
| `Layers` | `Layer[]` | Read/Write | Gets the parsed layer collection. |
| `ChannelsCount` | `int` | Read | Gets the PSD channels count. |
| `Size` | `Size` | Read | Gets the image size. |
| `ActiveLayer` | `Layer?` | Read/Write | Gets or sets the active layer. |
| `ImageResources` | `ResourceBlock[]` | Read/Write | Gets or sets the PSD image resources. |
| `GlobalLayerResources` | `LayerResource[]` | Read/Write | Gets or sets the global layer resources. |
| `GlobalLayerMaskInfo` | `GlobalLayerMaskInfo` | Read | Gets the global layer mask info. |
| `IsFlatten` | `bool` | Read | Gets a value indicating whether the PSD image is flattened. |
| `HasTransparencyData` | `bool` | Read/Write | Gets or sets a value indicating whether first alpha channel contains the transparency data for the merged result when specifying layers data. |
| `Compression` | `CompressionMethod` | Read | Gets the compression method used by the merged image data section. |
| `GlobalAngle` | `int` | Read/Write | Gets the parsed global angle from the image resources, when present. |
| `Bounds` | `Rectangle` | Read | Gets the image bounds. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Load(filePath: string)` | Loads a PSD image from a file path. |
| `Load(stream: Stream)` | Loads a PSD image from a readable stream. |
| `Save(filePath: string)` | Saves the image to a file path. |
| `Save(stream: Stream)` | Saves the image to a writable stream. |
| `Dispose()` | Releases the image and optionally the underlying stream. |

## See Also

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