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()
Deprecated.
|
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.
|
boolean |
getPreblendAlphaIfPresent()
Gets or sets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.
|
int |
getQuality()
Gets or sets image quality.
|
RdOptimizerSettings |
getRdOptSettings()
Gets or sets the RD optimizer settings.
|
byte |
getResolutionUnit()
Gets or sets the resolution unit.
|
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 |
setPreblendAlphaIfPresent(boolean value)
Gets or sets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.
|
void |
setQuality(int value)
Gets or sets image quality.
|
void |
setRdOptSettings(RdOptimizerSettings value)
Gets or sets the RD optimizer settings.
|
void |
setResolutionUnit(byte value)
Gets or sets the resolution unit.
|
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.
|
clone, getBufferSizeHint, getMultiPageOptions, getPalette, getProgressEventHandler, getResolutionSettings, getSource, getVectorRasterizationOptions, setBufferSizeHint, setMultiPageOptions, setPalette, setProgressEventHandler, setResolutionSettings, setSource, setVectorRasterizationOptions
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.@Deprecated public final int getDefaultMemoryAllocationLimit()
Gets or sets the default memory allocation limit.
Value: The default memory allocation limit.public final 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.
Value: The XMP data container.getXmpData
in class ImageOptionsBase
public void setXmpData(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
Value: The XMP data container.setXmpData
in class ImageOptionsBase
public final JFIFData getJfif()
Gets or sets the jfif.
public final void setJfif(JFIFData value)
Gets or sets the jfif.
public final String getComment()
Gets or sets the jpeg file comment.
public final void setComment(String value)
Gets or sets the jpeg file comment.
public final JpegExifData getExifData()
Get or set exif data container
public final void setExifData(JpegExifData value)
Get or set exif data container
public final int getCompressionType()
Gets or sets the compression type.
public final void setCompressionType(int value)
Gets or sets the compression type.
public final int getColorType()
Gets or sets the color type for jpeg image.
public final void setColorType(int value)
Gets or sets the color type for jpeg image.
public final byte getBitsPerChannel()
Gets or sets bits per channel for lossless jpeg image. Now we support from 2 to 8 bits per channel.
public final 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 final int getQuality()
Gets or sets image quality.
public final void setQuality(int value)
Gets or sets image quality.
public final int getScaledQuality()
The scaled quality.
public final RdOptimizerSettings getRdOptSettings()
Gets or sets the RD optimizer settings.
Value: The RD optimizer settings.public final void setRdOptSettings(RdOptimizerSettings value)
Gets or sets the RD optimizer settings.
Value: The RD optimizer settings.public final 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 final 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 final 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 final 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 final int getJpegLsAllowedLossyError()
Gets or sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
public final void setJpegLsAllowedLossyError(int value)
Gets or sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
public final int getJpegLsInterleaveMode()
Gets or sets the JPEG-LS interleave mode.
public final void setJpegLsInterleaveMode(int value)
Gets or sets the JPEG-LS interleave mode.
public final JpegLsPresetCodingParameters getJpegLsPreset()
Gets or sets the JPEG-LS preset parameters.
public final void setJpegLsPreset(JpegLsPresetCodingParameters value)
Gets or sets the JPEG-LS preset parameters.
public final byte[] getHorizontalSampling()
Gets or sets the horizontal subsamplings for each component.
public final void setHorizontalSampling(byte[] value)
Gets or sets the horizontal subsamplings for each component.
public final byte[] getVerticalSampling()
Gets or sets the vertical subsamplings for each component.
public final void setVerticalSampling(byte[] value)
Gets or sets the vertical subsamplings for each component.
public final int getSampleRoundingMode()
Gets or sets the sample rounding mode to fit an 8-bit value to an n-bit value. P:JpegOptions.BitsPerChannel
public final 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
public final boolean getPreblendAlphaIfPresent()
Gets or sets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.
public final void setPreblendAlphaIfPresent(boolean value)
Gets or sets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.
public final byte getResolutionUnit()
Gets or sets the resolution unit.
public final void setResolutionUnit(byte value)
Gets or sets the resolution unit.
Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.