ImageSaveParams Class Documentation
class ImageSaveParamsNamespace:com::datalogics::PDFL
Detailed Description
Class that defines parameters for saving an image to a graphics file. The parameters include the file type (such as PNG or JPG), compression, image quality, and gray scale.
Referenced by
Constructor & Destructor Documentation
ImageSaveParams
ImageSaveParams()Default parameters for saving an image to a file.
Member Function Documentation
delete
synchronized void delete(Boolean disposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized void delete()Returns:
synchronized voidfinalize
void finalize()Returns:
voidgetCompression
CompressionCode getCompression()Returns:
CompressionCodeThe compression code currently set. The default is CompressionCode.Default.
Gets the type of compression to be used in saving the image to a file.
getDisableAlphaChannelGeneration
boolean getDisableAlphaChannelGeneration()Returns:
booleantrue if alpha channel generation is disabled, false otherwise.
Gets whether alpha channel generation is disabled for the output image. When false, RGB image data with a Mask will be combined as RGBA + Alpha Channel output (32-bit). When true, the Mask is not combined and the output is RGB (24-bit). This is only valid for TIFF and PNG output formats.
getHalftoneGrayImages
boolean getHalftoneGrayImages()Returns:
booleantrue if halftone conversion is enabled, false otherwise.
Gets whether grayscale images are converted to halftone. When true, converts 8bpc grayscale images to 1bpc (B/W) images using a 45 degree line screen set for 106lpi at 600dpi. Note this can only be set to true for an image of ColorSpace of DeviceGray.
getJPEGQuality
int getJPEGQuality()Returns:
intThe JPEG quality value (0-100). The default is 0.
Gets the quality of a JPEG output image.
getMonochromeThreshold
short getMonochromeThreshold()Returns:
shortThe monochrome threshold value (0-255). The default is 128.
Gets the threshold for determining which bits are white or black for Monochrome output. Note: this is only valid for TIF Images using G3 or G4 compression and HalftoneGrayImages must be set to false.
getRaiseExceptionIfNotUsableColor
boolean getRaiseExceptionIfNotUsableColor()Returns:
booleantrue if an exception will be raised for unsupported color formats, false otherwise.
Gets whether an exception is raised if the image color format is not natively supported. When true, an exception will be raised if the image being saved is not in a format this graphic form can save natively. When false, the image will be automatically converted into a form that can be saved natively (generally DeviceRGB using the sRGB profile).
getReverseGray
boolean getReverseGray()Returns:
booleantrue if the grayscale output will be reversed, false otherwise.
Gets whether the GrayScale output is reversed. Note this is only valid for an image with a DeviceGray Colorspace.
getTIFFBlackIsOne
boolean getTIFFBlackIsOne()Returns:
booleantrue if the TIFF image is photometrically reversed, false otherwise.
Gets whether a TIFF file is photometrically reversed. Note this is only valid for a 1-bit TIFF image with a DeviceGray Colorspace.
getTIFFByteOrder
TIFFByteOrder getTIFFByteOrder()Returns:
TIFFByteOrderThe current TIFF byte order setting.
Gets the byte order used within the TIFF file. This is only valid for TIFF output.
getTIFFCMYKAlpha
boolean getTIFFCMYKAlpha()Returns:
booleantrue if CMYK + Alpha channel TIFF output is enabled, false otherwise.
Gets whether CMYK image data is combined with the Soft Mask in TIFF output. Note: This is only valid for CMYK image data which has a Soft Mask; the output will be 40-bit.
getWriteSeparationColorsToTIFF
boolean getWriteSeparationColorsToTIFF()Returns:
booleantrue if separation colors are written to TIFF, false if converted to sRGB.
Gets whether separation colors are written to TIFF using the Photoshop tag. When false, separation colors will be converted to their alternate color space and rendered as RGB. When true, separation colors are output using the TIFF Photoshop tag.
setCompression
void setCompression(CompressionCode compression)Parameters
compression: CompressionCodeThe compression code to use.
Returns:
voidSets the type of compression to be used in saving the image to a file. Note this is only valid for TIF images.
setDisableAlphaChannelGeneration
void setDisableAlphaChannelGeneration(boolean disableAlphaChannelGeneration)Parameters
disableAlphaChannelGeneration: booleantrue to disable alpha channel generation.
Returns:
voidSets whether alpha channel generation is disabled for the output image. This is only valid for output image types of TIF and PNG. The default value is false.
setHalftoneGrayImages
void setHalftoneGrayImages(boolean halftoneGray)Parameters
halftoneGray: booleantrue to enable halftone conversion.
Returns:
voidSets whether grayscale images are converted to halftone. Note this can only be set to true for an image of ColorSpace of DeviceGray. The default value is false.
setJPEGQuality
void setJPEGQuality(int jpegQuality)Parameters
jpegQuality: intThe JPEG quality value (0-100).
Returns:
voidSets the quality of a JPEG output image. Note this is only valid for JPEG images.
setMonochromeThreshold
void setMonochromeThreshold(short monochromeThreshold)Parameters
monochromeThreshold: shortThe monochrome threshold value (0-255).
Returns:
voidSets the threshold for determining which bits are white or black for Monochrome output. Note: this is only valid for TIF Images using G3 or G4 compression and HalftoneGrayImages must be set to false.
setRaiseExceptionIfNotUsableColor
void setRaiseExceptionIfNotUsableColor(boolean RaiseExceptionIfNotUsableColor)Parameters
RaiseExceptionIfNotUsableColor: booleantrue to raise an exception, false to auto-convert.
Returns:
voidSets whether an exception is raised if the image color format is not natively supported. The default value is false.
setReverseGray
void setReverseGray(boolean reversegray)Parameters
reversegray: booleantrue to reverse the grayscale output.
Returns:
voidSets whether the GrayScale output is reversed. This is only valid for images using the DeviceGray ColorSpace. The default value is false.
setTIFFBlackIsOne
void setTIFFBlackIsOne(boolean blackIsOne)Parameters
blackIsOne: booleantrue to photometrically reverse the TIFF image.
Returns:
voidSets whether a TIFF file is photometrically reversed. This is only valid for an output image of type TIF. The default value is false.
setTIFFByteOrder
void setTIFFByteOrder(TIFFByteOrder tiffByteOrder)Parameters
tiffByteOrder: TIFFByteOrderThe byte order to use for the TIFF file.
Returns:
voidSets the byte order used within the TIFF file. This is only valid for TIFF output.
setTIFFCMYKAlpha
void setTIFFCMYKAlpha(boolean cmykAlpha)Parameters
cmykAlpha: booleantrue to combine CMYK data with the Soft Mask as 40-bit TIFF output.
Returns:
voidSets whether CMYK image data is combined with the Soft Mask in TIFF output. This is only valid for an output image of type TIF. The default value is false.
setWriteSeparationColorsToTIFF
void setWriteSeparationColorsToTIFF(boolean WriteSeparationColorsToTIFF)Parameters
WriteSeparationColorsToTIFF: booleantrue to write separation colors to TIFF, false to convert to sRGB.
Returns:
voidSets whether separation colors are written to TIFF using the Photoshop tag. The default value is false.