Packages

 

com.aspose.imaging.imageloadoptions

Class PsdLoadOptions



  • public class PsdLoadOptions
    extends LoadOptions

    Psd load options

    • Constructor Detail

      • PsdLoadOptions

        public PsdLoadOptions()

        Initializes a new instance of the PsdLoadOptions class.

    • Method Detail

      • getLoadEffectsResource

        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.
      • setLoadEffectsResource

        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.
      • getUseDiskForLoadEffectsResource

        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.
      • setUseDiskForLoadEffectsResource

        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.
      • getReadOnlyMode

        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.
      • setReadOnlyMode

        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.
      • getDefaultReplacementFont

        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 });

        Returns:
        The default replacement font.
      • setDefaultReplacementFont

        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 });

        Parameters:
        value - The default replacement font.
      • getIgnoreTextLayerWidthOnUpdate

        public boolean getIgnoreTextLayerWidthOnUpdate()

        Gets a value indicating whether PSD text layer fixed width will be ignored on UpdateText operation execution.

        Returns:
        true if [ignore text layer width]; otherwise, false.
      • setIgnoreTextLayerWidthOnUpdate

        public void setIgnoreTextLayerWidthOnUpdate(boolean value)

        Sets a value indicating whether PSD text layer fixed width will be ignored on UpdateText operation execution.

        Parameters:
        value - true if [ignore text layer width]; otherwise, false.
      • getIgnoreAlphaChannel

        public boolean getIgnoreAlphaChannel()

        Gets or sets a value indicating whether [ignore alpha channel].

        Returns:
        true if [ignore alpha channel]; otherwise, false.
      • setIgnoreAlphaChannel

        public void setIgnoreAlphaChannel(boolean value)

        Gets or sets a value indicating whether [ignore alpha channel].

        Parameters:
        value - true if [ignore alpha channel]; otherwise, false.