Foxit PDF SDK
|
Public Types | |
enum | ImageCompressMode { ImageCompressMode.e_ImageCompressHigh = 10003, ImageCompressMode.e_ImageCompressjpeg = 10005, ImageCompressMode.e_ImageCompressjpeg2000 = 10006, ImageCompressMode.e_ImageCompressRetain = 10007 } |
Enumeration for compression mode used for color or gray image. More... | |
enum | ImageCompressQuality { ImageCompressQuality.e_ImageCompressQualityMinimum = 1, ImageCompressQuality.e_ImageCompressQualityLow = 2, ImageCompressQuality.e_ImageCompressQualityMedium = 3, ImageCompressQuality.e_ImageCompressQualityHigh = 4, ImageCompressQuality.e_ImageCompressQualityMaximum = 5 } |
Enumeration for loss compression quality used for color or gray image. More... | |
enum | StretchMode { StretchMode.e_StretchOff = 0x00, StretchMode.e_StretchInterpol = 0x20, StretchMode.e_StretchDownsample = 0x04, StretchMode.e_StretchBicubic = 0x80, StretchMode.e_StretchNoSmooth = 0x100 } |
Enumeration for stretch mode. More... | |
Public Member Functions | |
ImageSettings () | |
Constructor. More... | |
ImageSettings (ImageSettings other) | |
Constructor, with another image setting object. More... | |
bool | IsEmpty () |
Check whether current object is empty or not. More... | |
void | SetCompressionMode (ImageSettings.ImageCompressMode mode) |
Set compression mode used for optimizing color/gray images in a PDF document. More... | |
void | SetImageDPI (int dpi) |
Set the image DPI used for optimizing color/gray images in a PDF document. More... | |
void | SetQuality (ImageSettings.ImageCompressQuality quality) |
Set the quality for lossy compression modes, used for optimizing color/gray images in a PDF document. More... | |
void | SetStretchMode (ImageSettings.StretchMode mode) |
Set stretch mode used for optimizing color/gray images in a PDF document. More... | |
This class represents downsampling/recompression settings for color and grayscale images. This class object can be set to class OptimizerSettings and then be used to optimize a PDF document.
Enumeration for compression mode used for color or gray image.
Values of this enumeration should be used alone.
Enumeration for loss compression quality used for color or gray image.
Values of this enumeration should be used alone.
Enumeration for stretch mode.
Values of this enumeration should be used alone.
|
inline |
Constructor.
This constructor is to construct a color/gray image settings object with default setting options. User can also calling "set" methods in this class to change these setting options. Please refer to comment of these "set" methods for more details about default values.
|
inline |
Constructor, with another image setting object.
[in] | other | Another ImageSettings object. |
|
inline |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
|
inline |
Set compression mode used for optimizing color/gray images in a PDF document.
For a newly constructed object, if this function is not called to set option, that means to use foxit.addon.optimization.ImageSettings.ImageCompressMode.e_ImageCompressjpeg as the deault value of this option.
[in] | mode | Image compression mode. Please refer to values starting from foxit.addon.optimization.ImageSettings.ImageCompressMode.e_ImageCompressHigh and this should be one of these values. |
|
inline |
Set the image DPI used for optimizing color/gray images in a PDF document.
For a newly constructed object, if this function is not called to set option, that means to use 150 as the deault value of this option.
[in] | dpi | DPI value. |
|
inline |
Set the quality for lossy compression modes, used for optimizing color/gray images in a PDF document.
For a newly constructed object, if this function is not called to set this option, that means to use foxit.addon.optimization.ImageSettings.ImageCompressQuality.e_ImageCompressQualityMinimum as the deault value of this option.
[in] | quality | Quality value for lossy compression modes. Please refer to values starting from foxit.addon.optimization.ImageSettings.ImageCompressQuality.e_ImageCompressQualityMinimum and this should be one of these values. |
|
inline |
Set stretch mode used for optimizing color/gray images in a PDF document.
For a newly constructed object, if this function is not called to set this option, that means to use foxit.addon.optimization.ImageSettings.StretchMode.e_StretchBicubic as the deault value of this option.
[in] | mode | Stretch mode. Please refer to values starting from foxit.addon.optimization.ImageSettings.StretchMode.e_StretchOff and this should be one of these values. |