PsdOptions Class

Summary: The psd file format create options.

Module: aspose.psd.imageoptions

Full Name: aspose.psd.imageoptions.PsdOptions

Inheritance: ImageOptionsBase

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
PsdOptions()Initializes a new instance of the PsdOptions class.
PsdOptions(image)Initializes a new instance of the PsdOptions class.
PsdOptions(options)Initializes a new instance of the PsdOptions class.

Properties

NameTypeAccessDescription
buffer_size_hintintr/wGets or sets the buffer size hint which is defined max allowed size for all internal buffers.
channel_bits_countshortr/wGets or sets the bits count per color channel.
channels_countshortr/wGets or sets the color channels count.
color_modeColorModesr/wGets or sets the psd color mode.
compression_methodCompressionMethodr/wGets or sets the psd compression method.
default_replacement_fontstringr/wGets or sets the default replacement font (font that will be used to draw text when exporting to raster, if existing layer font in PSD file is not presented in system).
To take proper name of default font can be used next code snippet:
System.Drawing.Text.InstalledFontCollection col = new System.Drawing.Text.InstalledFontCollection();
System.Drawing.FontFamily families = col.Families;
string defaultFontName = families[0].Name;
PsdLoadOptions psdLoadOptions = new PsdLoadOptions() { DefaultReplacementFont = defaultFontName });
disposedboolrGets a value indicating whether this instance is disposed.
full_frameboolr/wGets or sets a value indicating whether [full frame].
multi_page_optionsMultiPageOptionsr/wThe multipage options
paletteIColorPaletter/wGets or sets the color palette.
psd_versionPsdVersionr/wGets or sets the file format version. It can be PSD or PSB.
refresh_image_preview_databoolr/wGets or sets a value indicating whether [refresh image preview data] - option used to maximize compatibility with another PSD image viewers.
Please note, text layers drawing to final layout is not supported for Compact Framework platform
remove_global_text_engine_resourceboolr/wGets or sets a value indicating whether - Remove the global text engine resource - Used for some text-layered psd files, in only case, when they can not be opened in Adobe Photoshop after processing (mostly for absent fonts text layers related).
After using this option, user need to Make next in opened in Photoshop file: Menu “Text” -> “Process absent fonts”. After that operation all text will appear again.
Please note, that this operation may cause some final layout changes.
resolution_settingsResolutionSettingr/wGets or sets the resolution settings.
resourcesResourceBlock[]r/wGets or sets the psd resources.
sourceSourcer/wGets or sets the source to create image in.
update_metadataboolr/wGets or sets a value indicating whether [update metadata].
If the value is true, the metadata will be updated while saving an image.
vector_rasterization_optionsVectorRasterizationOptionsr/wGets or sets the vector rasterization options.
versionintr/wGets or sets the psd file version.
xmp_dataXmpPacketWrapperr/wGet or set XMP data container

Methods

NameDescription
clone()Clones this instance.

Constructor: PsdOptions()

 PsdOptions() 

Initializes a new instance of the PsdOptions class.

Constructor: PsdOptions(image)

 PsdOptions(image) 

Initializes a new instance of the PsdOptions class.

Parameters:

ParameterTypeDescription
imagePsdImageThe image.

Constructor: PsdOptions(options)

 PsdOptions(options) 

Initializes a new instance of the PsdOptions class.

Parameters:

ParameterTypeDescription
optionsPsdOptionsThe options.

Method: clone()

 clone() 

Clones this instance.

Returns

TypeDescription
ImageOptionsBaseReturns shallow copy of this instance