Aspose.PSD FOSS for Python
API reference for Aspose.Psd FOSS for Python. 64 public types organized by module.
Core API
| Class | Description |
|---|
BigEndianReader | Reads big-endian data from a stream. |
BigEndianWriter | BigEndianWriter.position property returns the current write offset in the underlying stream. |
Image | Abstract base class for image objects. |
ImageLoader | Provides the load functionality for images. |
LayerAndMaskSectionReader | Class with 1 method. |
LayerAndMaskSectionWriter | Writes PSD/PSB Layer and Mask Information sections. |
Point | The Point class provides empty() to obtain a zero point and equals(other) to compare coordinates; its properties include x, y, is_empty, and the static Empty. |
PsdImage | Represents a PSD image that can be loaded, inspected, and saved without rendering. |
PsdSectionReader | Provides bounded reads for PSD/PSB sections that are stored in memory by this implementation. |
Rectangle | Stores a set of four integers that represent the location and size of a rectangle. |
RectangleF | Stores a set of four floating-point numbers that represent the location and size of a rectangle. |
ResourceBlock | Represents a PSD image resource block. |
Size | Class with 3 methods and 5 properties. |
StreamContainer | Represents a stream container used by resource save APIs. |
Enumerations
| Enumeration | Description |
|---|
ColorModes | Defines the color modes supported by PSD files. |
CompressionMethod | Defines the compression methods used for image data in PSD files. |
PsdVersion | Enum with 2 members. |
ResourceBlockState | Represents resource block state. |
SeekOrigin | Defines seek origin for reader. |
Conversion
| Class | Description |
|---|
BigEndianBitConverter | Provides helper methods for reading big-endian primitive values from byte arrays. |
Coreexceptions
| Class | Description |
|---|
ArgumentNullException | Exception that is thrown when argument is null. |
NotSupportedException | Exception that is thrown when operation is not supported. |
PsdLoadException | Exception that is thrown when an error occurs while loading a PSD file. |
PsdSaveException | Initializes a new instance of the PsdSaveException class. |
Layers
| Class | Description |
|---|
BlendRange | Represents a PSD layer blend range. |
ChannelInformation | Represents PSD layer channel information. |
GlobalLayerMaskInfo | Class with 1 method. |
Layer | Layer channel IDs and data lengths are available via the PsdLayerChannelInfo properties channel_id and data_length. |
LayerBlendModeMapper | Class with 2 methods and 1 member. |
LayerBlendingRangesData | Represents PSD layer blending ranges data. |
LayerBlendingRangesInfo | Class with 1 method and 2 properties. |
LayerChannelInfo | Stores one channel metadata entry from a layer record. |
LayerMaskData | Defines the base class for PSD layer mask data. |
LayerMaskDataShort | Defines layer mask data for layers that have only a raster or vector mask. |
LayerMaskInfo | Class with 1 method and 2 properties. |
LayerRawData | Class with 4 methods and 7 properties. |
LayerRecordReader | Class with 1 method and 3 members. |
LayerRecordWriter | Writes PSD/PSB layer records from the in-memory Layer model. |
LayerResource | Class with 1 method and 4 properties and 2 members. |
PsdLayerChannelInfo | Provides a read-only summary of one parsed layer channel record. |
RawLayerBlendingRangesSection | Class with 3 methods and 1 property. |
RawLayerMaskSection | Class with 3 methods and 1 property. |
Enumerations
| Enumeration | Description |
|---|
BlendMode | Defines the blend modes used for layers in PSD files. |
LayerMaskFlags | Defines PSD layer mask flags. |
Loaders
| Class | Description |
|---|
PsdImageLoader | Class with 1 method. |
Resources
| Class | Description |
|---|
ImageResourceIds | Provides common PSD image resource identifiers used by tests and fixtures. |
IndexedColorPalette | Class with 3 methods and 1 property and 1 member. |
IndexedColorPaletteInfo | Provides a read-only view over an indexed-color PSD palette. |
PreservedResourceBlock | Adapts a raw‑preserved image resource to the official ResourceBlock surface. |
PsdResourceInfo | Provides a read-only summary of one parsed PSD image resource block. |
UnknownResource | Initializes a new instance of the UnknownResource class. |
Enumerations
| Enumeration | Description |
|---|
PsdResourceKind | Enum with 4 members. |
Sections
| Class | Description |
|---|
ColorData | Stores the PSD Color Mode Data section as raw bytes plus mode‑aware parsed structure when available. |
ImageData | Stores the PSD Image Data section as a compression header plus raw payload bytes. |
ImageDataStructure | Describes the validated structural layout of the PSD Image Data payload. |
ImageResourcesSection | Represents the PSD Image Resources section as raw‑preserved bytes plus unknown‑only parsed summaries. |
LayerAndMaskSection | Represents the PSD/PSB Layer and Mask Information section and its raw-preserved save state. |
PsdColorDataInfo | Provides a read-only summary of the PSD Color Mode Data section. |
PsdHeader | Contains the header information of a Photoshop document. |
PsdImageDataInfo | Class with 1 method and 5 properties. |
PsdImageDocumentState | Stores parsed PSD/PSB document sections used by PsdImage. |
Enumerations
| Enumeration | Description |
|---|
ImageDataKind | Identifies the structural shape of the PSD Image Data payload. |
PsdColorDataKind | Describes how the Color Mode Data payload was interpreted for the loaded document. |
Writedescriptors
| Class | Description |
|---|
PsdImageWriter | Writes parsed PSD/PSB document state to a stream. |
See Also