PsdLoadOptions Class
Psd load options
Inheritance Hierarchy

Namespace: Aspose.PSD.ImageLoadOptions
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 21.10
public class PsdLoadOptions : LoadOptions

The PsdLoadOptions type exposes the following members.

Public methodPsdLoadOptions
Initializes a new instance of the PsdLoadOptions class
Public propertyBufferSizeHint
Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.
(Inherited from LoadOptions.)
Public propertyDataBackgroundColor
Gets or sets the Image background Color.
(Inherited from LoadOptions.)
Public propertyDataRecoveryMode
Gets or sets the data recovery mode.
(Inherited from LoadOptions.)
Public propertyIgnoreAlphaChannel
Gets or sets a value indicating whether [ignore alpha channel].
Public propertyIgnoreTextLayerWidthOnUpdate
Gets or sets a value indicating whether PSD text layer fixed width will be ignored on UpdateText operation execution.
Public propertyLoadEffectsResource
Gets or sets a value indicating whether [load effects resource] (by default resource is not loaded). When set this option only supported effects will be rendered to final merged image.
Public propertyProgressEventHandler
Gets or sets the progress event handler.
(Inherited from LoadOptions.)
Public propertyReadOnlyMode
Gets or sets a value indicating whether [use read only mode]. This is read-only mode, supported for identical compatibility with Adobe Photoshop. When this option is set, all changes applied for layers will not be saved to final image. All data is used from ImageData section, so it is identical to Photoshop. By default all loaded images are not identical to Adobe Photoshop compatible.
Public propertyUseDiskForLoadEffectsResource
Gets or sets a value indicating whether [use disk for load effects resource] (by default used disk to load effects resource, but can be used memory if it is enought by setting this value to false).
Public propertyUseIccProfileConversion
Gets or sets a value indicating whether ICC profile conversion should be applied.
(Inherited from LoadOptions.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
The following example demonstrates that the document conversion progress works correctly and without an exception.

string sourceFilePath = "Apple.psd";
Stream outputStream = new MemoryStream();

Aspose.PSD.ProgressEventHandler localProgressEventHandler = delegate (ProgressEventHandlerInfo progressInfo)
    string message = string.Format(
        "{0} {1}: {2} out of {3}",

Console.WriteLine("---------- Loading Apple.psd ----------");
var loadOptions = new PsdLoadOptions() { ProgressEventHandler = localProgressEventHandler };
using (PsdImage image = (PsdImage)Image.Load(sourceFilePath, loadOptions))
    Console.WriteLine("---------- Saving Apple.psd to PNG format ----------");
        new PngOptions()
            ColorType = PngColorType.Truecolor,
            ProgressEventHandler = localProgressEventHandler

    Console.WriteLine("---------- Saving Apple.psd to PSD format ----------");
        new PsdOptions()
            ColorMode = ColorModes.Rgb,
            ChannelsCount = 4,
            ProgressEventHandler = localProgressEventHandler
See Also