Image
Overview
Image is a class in Aspose.Psd FOSS for .NET.
Inherits from: IDisposable.
Provides the Aspose.PSD-compatible base image entry point for loading PSD/PSB documents.
This class declares 5 methods for Image 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: Bounds, Height, Width.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Width | int | Read | Gets the image width in pixels. |
Height | int | Read | Gets the image height in pixels. |
Bounds | Rectangle | Read | Gets the image bounds. |
Methods
| Signature | Description |
|---|---|
Load(filePath: string) | Loads a new image from the specified file path. |
Load(stream: Stream) | Loads a new image from the specified stream. |
Save(filePath: string) | Saves the image data to the specified file path. |
Save(stream: Stream) | Saves the image data to the specified stream. |
Dispose() | Releases resources used by the image. |