Packages

 

com.aspose.psd.imageoptions

Class PsdOptions



  • public class PsdOptions
    extends ImageOptionsBase

    The psd file format create options.

    Code example:

    A base example of converting an AI file to the PDF file format. It just loads an existing AI file and explicitly saves one as a PDF file.


                
    String inAiFilePath = "rect2_color.ai";
    String outPdfFilePath = "rect2_color.ai_output.pdf";
                
    // Load a regular AI file
    AiImage aiImage = (AiImage)Image.load(inAiFilePath);
    try
    {
        // Export the loaded AI file to the PDF file format with default options
        aiImage.save(outPdfFilePath, new PdfOptions());
    }
    finally
    {
        aiImage.dispose();
    }
    

    • Constructor Detail

      • PsdOptions

        public PsdOptions()

        Initializes a new instance of the PsdOptions class.

      • PsdOptions

        public PsdOptions(PsdOptions options)

        Initializes a new instance of the PsdOptions class.

        Parameters:
        options - The options.
      • PsdOptions

        public PsdOptions(PsdImage image)

        Initializes a new instance of the PsdOptions class.

        Parameters:
        image - The image.
    • Method Detail

      • getResources

        public final ResourceBlock[] getResources()

        Gets or sets the psd resources.

        Value: The psd resources.
      • setResources

        public final void setResources(ResourceBlock[] value)

        Gets or sets the psd resources.

        Value: The psd resources.
      • getVersion

        public final int getVersion()

        Gets or sets the psd file version.

        Value: The psd file version.
      • setVersion

        public final void setVersion(int value)

        Gets or sets the psd file version.

        Value: The psd file version.
      • getCompressionMethod

        public final short getCompressionMethod()

        Gets or sets the psd compression method.

        Value: The compression method.
      • setCompressionMethod

        public final void setCompressionMethod(short value)

        Gets or sets the psd compression method.

        Value: The compression method.
      • getPsdVersion

        public final byte getPsdVersion()

        Gets or sets the file format version. It can be PSD or PSB.

        Value: The file format version.
      • setPsdVersion

        public final void setPsdVersion(byte value)

        Gets or sets the file format version. It can be PSD or PSB.

        Value: The file format version.
      • getColorMode

        public final short getColorMode()

        Gets or sets the psd color mode.

        Value: The color mode.
      • setColorMode

        public final void setColorMode(short value)

        Gets or sets the psd color mode.

        Value: The color mode.
      • getChannelBitsCount

        public final short getChannelBitsCount()

        Gets or sets the bits count per color channel.

        Value: The bits count per color channel.
      • setChannelBitsCount

        public final void setChannelBitsCount(short value)

        Gets or sets the bits count per color channel.

        Value: The bits count per color channel.
      • getChannelsCount

        public final short getChannelsCount()

        Gets or sets the color channels count.

        Value: The color channels count.
      • setChannelsCount

        public final void setChannelsCount(short value)

        Gets or sets the color channels count.

        Value: The color channels count.
      • getRemoveGlobalTextEngineResource

        public final boolean getRemoveGlobalTextEngineResource()

        Gets 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.

        Value: true if [remove global text engine resource]; otherwise, false.
      • setRemoveGlobalTextEngineResource

        public final void setRemoveGlobalTextEngineResource(boolean value)

        Gets 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.

        Value: true if [remove global text engine resource]; otherwise, false.
      • getRefreshImagePreviewData

        public final boolean getRefreshImagePreviewData()

        Gets 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

        Value: true if [refresh image preview data]; otherwise, false.
      • setRefreshImagePreviewData

        public final void setRefreshImagePreviewData(boolean value)

        Gets 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

        Value: true if [refresh image preview data]; otherwise, false.