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

NameTypeAccessDescription
WidthintReadGets the document width in pixels.
HeightintReadGets the document height in pixels.
BitsPerChannelintReadGets the number of bits stored per channel.
ColorModeColorModesRead/WriteGets the PSD color mode reported by the header.
VersionintRead/WriteGets or sets the Aspose.PSD-compatible API version number.
LayersLayer[]Read/WriteGets the parsed layer collection.
ChannelsCountintReadGets the PSD channels count.
SizeSizeReadGets the image size.
ActiveLayerLayer?Read/WriteGets or sets the active layer.
ImageResourcesResourceBlock[]Read/WriteGets or sets the PSD image resources.
GlobalLayerResourcesLayerResource[]Read/WriteGets or sets the global layer resources.
GlobalLayerMaskInfoGlobalLayerMaskInfoReadGets the global layer mask info.
IsFlattenboolReadGets a value indicating whether the PSD image is flattened.
HasTransparencyDataboolRead/WriteGets or sets a value indicating whether first alpha channel contains the transparency data for the merged result when specifying layers data.
CompressionCompressionMethodReadGets the compression method used by the merged image data section.
GlobalAngleintRead/WriteGets the parsed global angle from the image resources, when present.
BoundsRectangleReadGets the image bounds.

Methods

SignatureDescription
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