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 bits per channel for lossless jpeg image.
|
StreamSource |
getCmykColorProfile()
The destination CMYK color profile for CMYK jpeg images.
|
int |
getColorType()
Gets the color type for jpeg image.
|
String |
getComment()
Gets the jpeg file comment.
|
int |
getCompressionType()
Gets the compression type.
|
int |
getDefaultMemoryAllocationLimit()
Deprecated.
Use com.aspose.psd.Image.getBufferSizeHint(), com.aspose.psd.ImageOptionsBase.getBufferSizeHint() or com.aspose.psd.LoadOptions.getBufferSizeHint() instead.
|
JpegExifData |
getExifData()
Get or set exif data container
|
byte[] |
getHorizontalSampling()
Gets the horizontal subsamplings for each component.
|
JFIFData |
getJfif()
Gets the jfif.
|
int |
getJpegLsAllowedLossyError()
Gets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
|
int |
getJpegLsInterleaveMode()
Gets the JPEG-LS interleave mode.
|
JpegLsPresetCodingParameters |
getJpegLsPreset()
Gets the JPEG-LS preset parameters.
|
boolean |
getPreblendAlphaIfPresent()
Gets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.
|
int |
getQuality()
Gets image quality.
|
RdOptimizerSettings |
getRdOptSettings()
Gets the RD optimizer settings.
|
byte |
getResolutionUnit()
Gets the resolution unit.
|
StreamSource |
getRgbColorProfile()
The destination RGB color profile for CMYK jpeg images.
|
int |
getSampleRoundingMode()
Gets the sample rounding mode to fit an 8-bit value to an n-bit value.
|
int |
getScaledQuality()
The scaled quality.
|
byte[] |
getVerticalSampling()
Gets the vertical subsamplings for each component.
|
XmpPacketWrapper |
getXmpData()
Gets the XMP metadata container.
|
void |
setBitsPerChannel(byte value)
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)
Sets the color type for jpeg image.
|
void |
setComment(String value)
Sets the jpeg file comment.
|
void |
setCompressionType(int value)
Sets the compression type.
|
void |
setDefaultMemoryAllocationLimit(int value)
Deprecated.
Use com.aspose.psd.Image.setBufferSizeHint(int), com.aspose.psd.ImageOptionsBase.setBufferSizeHint(int) or com.aspose.psd.LoadOptions.setBufferSizeHint(int) instead.
|
void |
setExifData(JpegExifData value)
Get or set exif data container
|
void |
setHorizontalSampling(byte[] value)
Sets the horizontal subsamplings for each component.
|
void |
setJfif(JFIFData value)
Sets the jfif.
|
void |
setJpegLsAllowedLossyError(int value)
Sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
|
void |
setJpegLsInterleaveMode(int value)
Sets the JPEG-LS interleave mode.
|
void |
setJpegLsPreset(JpegLsPresetCodingParameters value)
Sets the JPEG-LS preset parameters.
|
void |
setPreblendAlphaIfPresent(boolean value)
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)
Sets image quality.
|
void |
setRdOptSettings(RdOptimizerSettings value)
Sets the RD optimizer settings.
|
void |
setResolutionUnit(byte value)
Sets the resolution unit.
|
void |
setRgbColorProfile(StreamSource value)
The destination RGB color profile for CMYK jpeg images.
|
void |
setSampleRoundingMode(int value)
Sets the sample rounding mode to fit an 8-bit value to an n-bit value.
|
void |
setVerticalSampling(byte[] value)
Sets the vertical subsamplings for each component.
|
void |
setXmpData(XmpPacketWrapper value)
Sets the XMP metadata 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 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 int getDefaultMemoryAllocationLimit()
Gets the default memory allocation limit.
@Deprecated public void setDefaultMemoryAllocationLimit(int value)
Sets the default memory allocation limit.
value
- The default memory allocation limit.public XmpPacketWrapper getXmpData()
Gets the XMP metadata container.
getXmpData
in class ImageOptionsBase
public void setXmpData(XmpPacketWrapper value)
Sets the XMP metadata container.
setXmpData
in class ImageOptionsBase
value
- The XMP data container.public JFIFData getJfif()
Gets the jfif.
public void setJfif(JFIFData value)
Sets the jfif.
public String getComment()
Gets the jpeg file comment.
public void setComment(String value)
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 the compression type.
public void setCompressionType(int value)
Sets the compression type.
public int getColorType()
Gets the color type for jpeg image.
public void setColorType(int value)
Sets the color type for jpeg image.
public byte getBitsPerChannel()
Gets bits per channel for lossless jpeg image. Now we support from 2 to 8 bits per channel.
public void setBitsPerChannel(byte value)
Sets bits per channel for lossless jpeg image. Now we support from 2 to 8 bits per channel.
public int getQuality()
Gets image quality.
public void setQuality(int value)
Sets image quality.
public int getScaledQuality()
The scaled quality.
public RdOptimizerSettings getRdOptSettings()
Gets the RD optimizer settings.
public void setRdOptSettings(RdOptimizerSettings value)
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 the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
public void setJpegLsAllowedLossyError(int value)
Sets the JPEG-LS difference bound for near-lossless coding (NEAR parameter from the JPEG-LS specification).
public int getJpegLsInterleaveMode()
Gets the JPEG-LS interleave mode.
public void setJpegLsInterleaveMode(int value)
Sets the JPEG-LS interleave mode.
public JpegLsPresetCodingParameters getJpegLsPreset()
Gets the JPEG-LS preset parameters.
public void setJpegLsPreset(JpegLsPresetCodingParameters value)
Sets the JPEG-LS preset parameters.
public byte[] getHorizontalSampling()
Gets the horizontal subsamplings for each component.
public void setHorizontalSampling(byte[] value)
Sets the horizontal subsamplings for each component.
public byte[] getVerticalSampling()
Gets the vertical subsamplings for each component.
public void setVerticalSampling(byte[] value)
Sets the vertical subsamplings for each component.
public int getSampleRoundingMode()
Gets the sample rounding mode to fit an 8-bit value to an n-bit value. P:JpegOptions.BitsPerChannel
public void setSampleRoundingMode(int value)
Sets the sample rounding mode to fit an 8-bit value to an n-bit value. P:JpegOptions.BitsPerChannel
public boolean getPreblendAlphaIfPresent()
Gets a value indicating whether red, green and blue components should be mixed with a background color, if alpha channel is present.
public void setPreblendAlphaIfPresent(boolean value)
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 the resolution unit.
public final void setResolutionUnit(byte value)
Sets the resolution unit.
value
- the resolution unit.