public class PsdOptions extends ImageOptionsBase
The psd file format create options.
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 and Description |
---|
PsdOptions()
Initializes a new instance of the
PsdOptions class. |
PsdOptions(PsdImage image)
Initializes a new instance of the
PsdOptions class. |
PsdOptions(PsdOptions options)
Initializes a new instance of the
PsdOptions class. |
Modifier and Type | Method and Description |
---|---|
short |
getChannelBitsCount()
Gets or sets the bits count per color channel.
|
short |
getChannelsCount()
Gets or sets the color channels count.
|
short |
getColorMode()
Gets or sets the psd color mode.
|
short |
getCompressionMethod()
Gets or sets the psd compression method.
|
byte |
getPsdVersion()
Gets or sets the file format version.
|
boolean |
getRefreshImagePreviewData()
Gets or sets a value indicating whether [refresh image preview data] - option used to maximize compatibility with another PSD image viewers.
|
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).
|
ResourceBlock[] |
getResources()
Gets or sets the psd resources.
|
int |
getVersion()
Gets or sets the psd file version.
|
XmpPacketWrapper |
getXmpData()
Get or set XMP data container
|
void |
setChannelBitsCount(short value)
Gets or sets the bits count per color channel.
|
void |
setChannelsCount(short value)
Gets or sets the color channels count.
|
void |
setColorMode(short value)
Gets or sets the psd color mode.
|
void |
setCompressionMethod(short value)
Gets or sets the psd compression method.
|
void |
setPsdVersion(byte value)
Gets or sets the file format version.
|
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.
|
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).
|
void |
setResources(ResourceBlock[] value)
Gets or sets the psd resources.
|
void |
setVersion(int value)
Gets or sets the psd file version.
|
void |
setXmpData(XmpPacketWrapper value)
Get or set XMP data container
|
clone, deepClone, getBufferSizeHint, getDefaultReplacementFont, getFullFrame, getMultiPageOptions, getPalette, getProgressEventHandler, getResolutionSettings, getSource, getVectorRasterizationOptions, setBufferSizeHint, setDefaultReplacementFont, setFullFrame, setMultiPageOptions, setPalette, setProgressEventHandler, setResolutionSettings, setSource, setVectorRasterizationOptions
close, dispose, getDisposed
public PsdOptions()
Initializes a new instance of the PsdOptions
class.
public PsdOptions(PsdOptions options)
Initializes a new instance of the PsdOptions
class.
options
- The options.public PsdOptions(PsdImage image)
Initializes a new instance of the PsdOptions
class.
image
- The image.public XmpPacketWrapper getXmpData()
Get or set XMP data container
getXmpData
in class ImageOptionsBase
public void setXmpData(XmpPacketWrapper value)
Get or set XMP data container
setXmpData
in class ImageOptionsBase
public final ResourceBlock[] getResources()
Gets or sets the psd resources.
Value: The psd resources.public final void setResources(ResourceBlock[] value)
Gets or sets the psd resources.
Value: The psd resources.public final int getVersion()
Gets or sets the psd file version.
Value: The psd file version.public final void setVersion(int value)
Gets or sets the psd file version.
Value: The psd file version.public final short getCompressionMethod()
Gets or sets the psd compression method.
Value: The compression method.public final void setCompressionMethod(short value)
Gets or sets the psd compression method.
Value: The compression method.public final byte getPsdVersion()
Gets or sets the file format version. It can be PSD or PSB.
Value: The file format version.public final void setPsdVersion(byte value)
Gets or sets the file format version. It can be PSD or PSB.
Value: The file format version.public final short getColorMode()
Gets or sets the psd color mode.
Value: The color mode.public final void setColorMode(short value)
Gets or sets the psd color mode.
Value: The color mode.public final short getChannelBitsCount()
Gets or sets the bits count per color channel.
Value: The bits count per color channel.public final void setChannelBitsCount(short value)
Gets or sets the bits count per color channel.
Value: The bits count per color channel.public final short getChannelsCount()
Gets or sets the color channels count.
Value: The color channels count.public final void setChannelsCount(short value)
Gets or sets the color channels count.
Value: The color channels count.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
.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
.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
.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
.