public class PsdLoadOptions extends LoadOptions
Psd load options
Constructor and Description |
---|
PsdLoadOptions()
Initializes a new instance of the
PsdLoadOptions class. |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultReplacementFont()
Gets 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).
|
boolean |
getIgnoreAlphaChannel()
Gets or sets a value indicating whether [ignore alpha channel].
|
boolean |
getIgnoreTextLayerWidthOnUpdate()
Gets a value indicating whether PSD text layer fixed width will be ignored on UpdateText operation execution.
|
boolean |
getLoadEffectsResource()
Gets or sets a value indicating whether [load effects resource] (by default resource is not loaded).
|
boolean |
getReadOnlyMode()
Gets or sets a value indicating whether [use read only mode].
|
boolean |
getUseDiskForLoadEffectsResource()
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).
|
void |
setDefaultReplacementFont(String value)
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).
|
void |
setIgnoreAlphaChannel(boolean value)
Gets or sets a value indicating whether [ignore alpha channel].
|
void |
setIgnoreTextLayerWidthOnUpdate(boolean value)
Sets a value indicating whether PSD text layer fixed width will be ignored on UpdateText operation execution.
|
void |
setLoadEffectsResource(boolean value)
Gets or sets a value indicating whether [load effects resource] (by default resource is not loaded).
|
void |
setReadOnlyMode(boolean value)
Gets or sets a value indicating whether [use read only mode].
|
void |
setUseDiskForLoadEffectsResource(boolean value)
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).
|
getBufferSizeHint, getDataBackgroundColor, getDataRecoveryMode, getProgressEventHandler, getUseIccProfileConversion, setBufferSizeHint, setDataBackgroundColor, setDataRecoveryMode, setProgressEventHandler, setUseIccProfileConversion
public PsdLoadOptions()
Initializes a new instance of the PsdLoadOptions
class.
public boolean getLoadEffectsResource()
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.
Value:true
if [load effects resource]; otherwise, false
.public void setLoadEffectsResource(boolean value)
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.
Value:true
if [load effects resource]; otherwise, false
.public boolean getUseDiskForLoadEffectsResource()
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).
Value:true
if [use disk for load effects resource]; otherwise, false
.public void setUseDiskForLoadEffectsResource(boolean value)
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).
Value:true
if [use disk for load effects resource]; otherwise, false
.public boolean getReadOnlyMode()
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.
Value:true
if [use photoshop compatibility mode]; otherwise, false
.public void setReadOnlyMode(boolean value)
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.
Value:true
if [use photoshop compatibility mode]; otherwise, false
.public String getDefaultReplacementFont()
Gets 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 });
public void setDefaultReplacementFont(String value)
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 });
value
- The default replacement font.public boolean getIgnoreTextLayerWidthOnUpdate()
Gets a value indicating whether PSD text layer fixed width will be ignored on UpdateText operation execution.
true
if [ignore text layer width]; otherwise, false
.public void setIgnoreTextLayerWidthOnUpdate(boolean value)
Sets a value indicating whether PSD text layer fixed width will be ignored on UpdateText operation execution.
value
- true
if [ignore text layer width]; otherwise, false
.public boolean getIgnoreAlphaChannel()
Gets or sets a value indicating whether [ignore alpha channel].
true
if [ignore alpha channel]; otherwise, false
.public void setIgnoreAlphaChannel(boolean value)
Gets or sets a value indicating whether [ignore alpha channel].
value
- true
if [ignore alpha channel]; otherwise, false
.