private static class DecodeOptions.FinalDecodeOptions extends DecodeOptions
DEFAULT
Constructor and Description |
---|
FinalDecodeOptions(boolean filterSubsampled) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
setFilterSubsampled(boolean filterSubsampled)
Used internally by filters to signal they have applied subsampling as requested by this
options instance.
|
void |
setSourceRegion(java.awt.Rectangle sourceRegion)
Sets the region of the source image that should be decoded.
|
void |
setSubsamplingOffsetX(int ssOffsetX)
Sets the horizontal subsampling offset for decoding images
|
void |
setSubsamplingOffsetY(int ssOffsetY)
Sets the vertical subsampling offset for decoding images
|
void |
setSubsamplingX(int ssX)
Sets the number of columns to advance in the source for every pixel decoded
|
void |
setSubsamplingY(int ssY)
Sets the number of rows to advance in the source for every pixel decoded
|
getSourceRegion, getSubsamplingOffsetX, getSubsamplingOffsetY, getSubsamplingX, getSubsamplingY, isFilterSubsampled
public void setSourceRegion(java.awt.Rectangle sourceRegion)
DecodeOptions
setSourceRegion
in class DecodeOptions
sourceRegion
- The source region to decode, or null if the entire image should be
decoded.public void setSubsamplingX(int ssX)
DecodeOptions
setSubsamplingX
in class DecodeOptions
ssX
- The x-axis subsampling valuepublic void setSubsamplingY(int ssY)
DecodeOptions
setSubsamplingY
in class DecodeOptions
ssY
- The y-axis subsampling valuepublic void setSubsamplingOffsetX(int ssOffsetX)
DecodeOptions
setSubsamplingOffsetX
in class DecodeOptions
ssOffsetX
- The x-axis subsampling offsetpublic void setSubsamplingOffsetY(int ssOffsetY)
DecodeOptions
setSubsamplingOffsetY
in class DecodeOptions
ssOffsetY
- The y-axis subsampling offsetvoid setFilterSubsampled(boolean filterSubsampled)
DecodeOptions
setFilterSubsampled
in class DecodeOptions
filterSubsampled
- Value specifying if the filter could meet the requested options.
Usually a filter will only call this with the value true
, as the default value
for the flag is false
.