public class OpenJp2ImageWriteParam extends ImageWriteParam
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenJp2ImageWriteParam.ProgressionOrder |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPRESS_TYPE_LOSSLESS |
static String |
COMPRESS_TYPE_LOSSY |
canOffsetTiles, canWriteCompressed, canWriteProgressive, canWriteTiles, compressionMode, compressionQuality, compressionType, compressionTypes, locale, MODE_COPY_FROM_METADATA, MODE_DEFAULT, MODE_DISABLED, MODE_EXPLICIT, preferredTileSizes, progressiveMode, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, tilingMode, tilingSetcontroller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset| Constructor and Description |
|---|
OpenJp2ImageWriteParam() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canOffsetTiles() |
boolean |
canWriteCompressed() |
boolean |
canWriteProgressive() |
boolean |
canWriteTiles() |
String |
getCompressionType() |
String[] |
getCompressionTypes() |
int |
getNumResolutions() |
OpenJp2ImageWriteParam.ProgressionOrder |
getProgressionOrder() |
boolean |
isCompressionLossless() |
void |
setCompressionQuality(float quality)
Set the compression quality.
|
void |
setCompressionType(String compressionType)
Set the compression type.
|
void |
setNumResolutions(int numResolutions)
Set the number of resolutions to encode in the output image.
|
void |
setProgressionOrder(OpenJp2ImageWriteParam.ProgressionOrder progOrder)
Set the progression order of the encoded image.
|
void |
setWriteEPHMarkers(boolean writeEPHMarkers)
Write EPH marker after each header packet.
|
void |
setWriteSOPMarkers(boolean writeSOPMarkers)
Write SOP markers after each packet.
|
boolean |
shouldWriteEPHMarkers() |
boolean |
shouldWriteSOPMarkers() |
protected opj_cparameters |
toNativeParams(OpenJpeg lib) |
void |
unsetCompression() |
getBitRate, getCompressionMode, getCompressionQuality, getCompressionQualityDescriptions, getCompressionQualityValues, getLocale, getLocalizedCompressionTypeName, getPreferredTileSizes, getProgressiveMode, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getTilingMode, setCompressionMode, setProgressiveMode, setTiling, setTilingMode, unsetTilingactivateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setDestinationType, setSourceBands, setSourceRegion, setSourceSubsamplingpublic static String COMPRESS_TYPE_LOSSY
public static String COMPRESS_TYPE_LOSSLESS
protected opj_cparameters toNativeParams(OpenJpeg lib)
public boolean canWriteTiles()
canWriteTiles in class ImageWriteParampublic boolean canOffsetTiles()
canOffsetTiles in class ImageWriteParampublic boolean canWriteProgressive()
canWriteProgressive in class ImageWriteParampublic boolean canWriteCompressed()
canWriteCompressed in class ImageWriteParampublic String[] getCompressionTypes()
getCompressionTypes in class ImageWriteParampublic void setCompressionType(String compressionType)
setCompressionType in class ImageWriteParampublic String getCompressionType()
getCompressionType in class ImageWriteParampublic void unsetCompression()
unsetCompression in class ImageWriteParampublic boolean isCompressionLossless()
isCompressionLossless in class ImageWriteParampublic boolean shouldWriteSOPMarkers()
public void setWriteSOPMarkers(boolean writeSOPMarkers)
writeSOPMarkers - flag if sop markers should be writtenpublic boolean shouldWriteEPHMarkers()
public void setWriteEPHMarkers(boolean writeEPHMarkers)
writeEPHMarkers - flag if eph markers should be writtenpublic void setCompressionQuality(float quality)
ImageWriteParam.setCompressionType(java.lang.String) must have been set to ImageWriteParam.MODE_EXPLICIT.
Quality must be between 0.0 (worst) and 1.0 (best).setCompressionQuality in class ImageWriteParampublic int getNumResolutions()
public void setNumResolutions(int numResolutions)
numResolutions - the num resolutionspublic OpenJp2ImageWriteParam.ProgressionOrder getProgressionOrder()
public void setProgressionOrder(OpenJp2ImageWriteParam.ProgressionOrder progOrder)
progOrder - the progression orderCopyright © 2019. All rights reserved.