public class JpegOptions extends ImageOptionsBase
The jpeg file format create options.
Constructor and Description |
---|
JpegOptions()
Initializes a new instance of the
JpegOptions class. |
JpegOptions(JpegOptions jpegOptions)
Initializes a new instance of the
JpegOptions class. |
Modifier and Type | Method and Description |
---|---|
byte |
getBitsPerChannel()
Gets or sets bits per channel for lossless jpeg image.
|
StreamSource |
getCmykColorProfile()
The destination CMYK color profile for CMYK jpeg images.
|
int |
getColorType()
Gets or sets the color type for jpeg image.
|
String |
getComment()
Gets or sets the jpeg file comment.
|
int |
getCompressionType()
Gets or sets the compression type.
|
int |
getDefaultMemoryAllocationLimit()
Gets or sets the default memory allocation limit.
|
JpegExifData |
getExifData()
Get or set exif data container
|
byte[] |
getHorizontalSampling()
Gets or sets the horizontal subsamplings for each component.
|
JFIFData |
getJfif()
Gets or sets the jfif.
|
int |
getJpegLsAllowedLossyError()
Gets or sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
|
int |
getJpegLsInterleaveMode()
Gets or sets the JPEG-LS interleave mode.
|
JpegLsPresetCodingParameters |
getJpegLsPreset()
Gets or sets the JPEG-LS preset parameters.
|
int |
getQuality()
Gets or sets image quality.
|
RdOptimizerSettings |
getRdOptSettings()
Gets or sets the RD optimizer settings.
|
StreamSource |
getRgbColorProfile()
The destination RGB color profile for CMYK jpeg images.
|
int |
getSampleRoundingMode()
Gets or sets the sample rounding mode to fit an 8-bit value to an n-bit value.
|
int |
getScaledQuality()
The scaled quality.
|
byte[] |
getVerticalSampling()
Gets or sets the vertical subsamplings for each component.
|
XmpPacketWrapper |
getXmpData()
Gets or sets the XMP metadata container.
|
void |
setBitsPerChannel(byte value)
Gets or sets bits per channel for lossless jpeg image.
|
void |
setCmykColorProfile(StreamSource value)
The destination CMYK color profile for CMYK jpeg images.
|
void |
setColorType(int value)
Gets or sets the color type for jpeg image.
|
void |
setComment(String value)
Gets or sets the jpeg file comment.
|
void |
setCompressionType(int value)
Gets or sets the compression type.
|
void |
setDefaultMemoryAllocationLimit(int value)
Gets or sets the default memory allocation limit.
|
void |
setExifData(JpegExifData value)
Get or set exif data container
|
void |
setHorizontalSampling(byte[] value)
Gets or sets the horizontal subsamplings for each component.
|
void |
setJfif(JFIFData value)
Gets or sets the jfif.
|
void |
setJpegLsAllowedLossyError(int value)
Gets or sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
|
void |
setJpegLsInterleaveMode(int value)
Gets or sets the JPEG-LS interleave mode.
|
void |
setJpegLsPreset(JpegLsPresetCodingParameters value)
Gets or sets the JPEG-LS preset parameters.
|
void |
setQuality(int value)
Gets or sets image quality.
|
void |
setRdOptSettings(RdOptimizerSettings value)
Gets or sets the RD optimizer settings.
|
void |
setRgbColorProfile(StreamSource value)
The destination RGB color profile for CMYK jpeg images.
|
void |
setSampleRoundingMode(int value)
Gets or sets the sample rounding mode to fit an 8-bit value to an n-bit value.
|
void |
setVerticalSampling(byte[] value)
Gets or sets the vertical subsamplings for each component.
|
void |
setXmpData(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
|
deepClone, getMultiPageOptions, getPalette, getResolutionSettings, getSource, getVectorRasterizationOptions, setMultiPageOptions, setPalette, setResolutionSettings, setSource, setVectorRasterizationOptions
close, dispose, getDisposed
public JpegOptions()
Initializes a new instance of the JpegOptions
class.
public JpegOptions(JpegOptions jpegOptions)
Initializes a new instance of the JpegOptions
class.
jpegOptions
- The JPEG options.public int getDefaultMemoryAllocationLimit()
Gets or sets the default memory allocation limit.
public void setDefaultMemoryAllocationLimit(int value)
Gets or sets the default memory allocation limit.
value
- The default memory allocation limit.public XmpPacketWrapper getXmpData()
Gets or sets the XMP metadata container.
getXmpData
in class ImageOptionsBase
public void setXmpData(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
setXmpData
in class ImageOptionsBase
value
- The XMP data container.public JFIFData getJfif()
Gets or sets the jfif.
public void setJfif(JFIFData value)
Gets or sets the jfif.
public String getComment()
Gets or sets the jpeg file comment.
public void setComment(String value)
Gets or sets the jpeg file comment.
public JpegExifData getExifData()
Get or set exif data container
public void setExifData(JpegExifData value)
Get or set exif data container
public int getCompressionType()
Gets or sets the compression type.
public void setCompressionType(int value)
Gets or sets the compression type.
public int getColorType()
Gets or sets the color type for jpeg image.
public void setColorType(int value)
Gets or sets the color type for jpeg image.
public byte getBitsPerChannel()
Gets or sets bits per channel for lossless jpeg image. Now we support from 2 to 8 bits per channel.
public void setBitsPerChannel(byte value)
Gets or sets bits per channel for lossless jpeg image. Now we support from 2 to 8 bits per channel.
public int getQuality()
Gets or sets image quality.
public void setQuality(int value)
Gets or sets image quality.
public int getScaledQuality()
The scaled quality.
public RdOptimizerSettings getRdOptSettings()
Gets or sets the RD optimizer settings.
public void setRdOptSettings(RdOptimizerSettings value)
Gets or sets the RD optimizer settings.
value
- The RD optimizer settings.public StreamSource getRgbColorProfile()
The destination RGB color profile for CMYK jpeg images. Use for saving images. Must be in pair with CMYKColorProfile for correct color conversion.
public void setRgbColorProfile(StreamSource value)
The destination RGB color profile for CMYK jpeg images. Use for saving images. Must be in pair with CMYKColorProfile for correct color conversion.
public StreamSource getCmykColorProfile()
The destination CMYK color profile for CMYK jpeg images. Use for saving images. Must be in pair with RGBColorProfile for correct color conversion.
public void setCmykColorProfile(StreamSource value)
The destination CMYK color profile for CMYK jpeg images. Use for saving images. Must be in pair with RGBColorProfile for correct color conversion.
public int getJpegLsAllowedLossyError()
Gets or sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
public void setJpegLsAllowedLossyError(int value)
Gets or sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
public int getJpegLsInterleaveMode()
Gets or sets the JPEG-LS interleave mode.
public void setJpegLsInterleaveMode(int value)
Gets or sets the JPEG-LS interleave mode.
public JpegLsPresetCodingParameters getJpegLsPreset()
Gets or sets the JPEG-LS preset parameters.
public void setJpegLsPreset(JpegLsPresetCodingParameters value)
Gets or sets the JPEG-LS preset parameters.
public byte[] getHorizontalSampling()
Gets or sets the horizontal subsamplings for each component.
public void setHorizontalSampling(byte[] value)
Gets or sets the horizontal subsamplings for each component.
public byte[] getVerticalSampling()
Gets or sets the vertical subsamplings for each component.
public void setVerticalSampling(byte[] value)
Gets or sets the vertical subsamplings for each component.
public int getSampleRoundingMode()
Gets or sets the sample rounding mode to fit an 8-bit value to an n-bit value. P:JpegOptions.BitsPerChannel
public void setSampleRoundingMode(int value)
Gets or sets the sample rounding mode to fit an 8-bit value to an n-bit value. P:JpegOptions.BitsPerChannel
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.