| Modifier and Type | Class and Description |
|---|---|
| private static class | DecodeOptions.
Helper class for reusable instances which may not be modified. |
| Modifier and Type | Field and Description |
|---|---|
| public static final DecodeOptions | DEFAULT
Default decode options. |
| private boolean | |
| private Rectangle | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DecodeOptions(Rectangle
Region of the source image that should be decoded sourceRegion)Constructs an instance specifying the region of the image that should be decoded. |
| public | DecodeOptions(int
x-coordinate of the top-left corner of the region to be decoded x, int y-coordinate of the top-left corner of the region to be decoded y, int Width of the region to be decoded width, int Height of the region to be decoded height)Constructs an instance specifying the region of the image that should be decoded. |
| public | DecodeOptions(int
The number of rows and columns to advance in the source for each pixel in
the decoded image. subsampling)Constructs an instance specifying the image should be decoded using subsampling. |
| Modifier and Type | Method and Description |
|---|---|
| public Rectangle | Returns: The source region to decode, or null if the entire image should be decodedWhen decoding an image, the part of the image that should be decoded, or null if the entire image is needed. |
| public int | Returns: The x-axis subsampling offsetWhen decoding an image, the horizontal offset for subsampling |
| public int | Returns: The y-axis subsampling offsetWhen decoding an image, the vertical offset for subsampling |
| public int | Returns: The x-axis subsampling valueWhen decoding an image, the number of columns to advance in the source for every pixel decoded. |
| public int | Returns: The y-axis subsampling valueWhen decoding an image, the number of rows to advance in the source for every pixel decoded. |
| public boolean | Returns: True if the filter applied the options specified by this instance, false otherwise.Flag used by the filter to specify if it performed subsampling. |
| pack-priv void | setFilterSubsampled(boolean
Value specifying if the filter could meet the requested options.
Usually a filter will only call this with the value filterSubsampled)true, as the default value
for the flag is false.Used internally by filters to signal they have applied subsampling as requested by this options instance. |
| public void | setSourceRegion(Rectangle
The source region to decode, or null if the entire image should be
decoded. sourceRegion)Sets the region of the source image that should be decoded. |
| public void | setSubsamplingOffsetX(int
The x-axis subsampling offset ssOffsetX)Sets the horizontal subsampling offset for decoding images |
| public void | setSubsamplingOffsetY(int
The y-axis subsampling offset ssOffsetY)Sets the vertical subsampling offset for decoding images |
| public void | setSubsamplingX(int
The x-axis subsampling value ssX)Sets the number of columns to advance in the source for every pixel decoded |
| public void | setSubsamplingY(int
The y-axis subsampling value ssY)Sets the number of rows to advance in the source for every pixel decoded |
| DEFAULT | back to summary |
|---|---|
| public static final DecodeOptions DEFAULT Default decode options. The honored flag for this instance is always true, as it represents the default behavior. | |
| filterSubsampled | back to summary |
|---|---|
| private boolean filterSubsampled | |
| sourceRegion | back to summary |
|---|---|
| private Rectangle sourceRegion | |
| subsamplingOffsetX | back to summary |
|---|---|
| private int subsamplingOffsetX | |
| subsamplingOffsetY | back to summary |
|---|---|
| private int subsamplingOffsetY | |
| subsamplingX | back to summary |
|---|---|
| private int subsamplingX | |
| subsamplingY | back to summary |
|---|---|
| private int subsamplingY | |
| DecodeOptions | back to summary |
|---|---|
| public DecodeOptions() Constructs an empty DecodeOptions instance | |
| DecodeOptions | back to summary |
|---|---|
| public DecodeOptions(Rectangle sourceRegion) Constructs an instance specifying the region of the image that should be decoded. The actual region will be clipped to the dimensions of the image.
| |
| DecodeOptions | back to summary |
|---|---|
| public DecodeOptions(int x, int y, int width, int height) Constructs an instance specifying the region of the image that should be decoded. The actual region will be clipped to the dimensions of the image.
| |
| DecodeOptions | back to summary |
|---|---|
| public DecodeOptions(int subsampling) Constructs an instance specifying the image should be decoded using subsampling. The subsampling will be the same for the X and Y axes.
| |
| getSourceRegion | back to summary |
|---|---|
| public Rectangle getSourceRegion() When decoding an image, the part of the image that should be decoded, or null if the entire image is needed.
| |
| getSubsamplingOffsetX | back to summary |
|---|---|
| public int getSubsamplingOffsetX() When decoding an image, the horizontal offset for subsampling
| |
| getSubsamplingOffsetY | back to summary |
|---|---|
| public int getSubsamplingOffsetY() When decoding an image, the vertical offset for subsampling
| |
| getSubsamplingX | back to summary |
|---|---|
| public int getSubsamplingX() When decoding an image, the number of columns to advance in the source for every pixel decoded.
| |
| getSubsamplingY | back to summary |
|---|---|
| public int getSubsamplingY() When decoding an image, the number of rows to advance in the source for every pixel decoded.
| |
| isFilterSubsampled | back to summary |
|---|---|
| public boolean isFilterSubsampled() Flag used by the filter to specify if it performed subsampling. Some filters may be unable or unwilling to apply subsampling, and so the caller must check this flag after decoding.
| |
| setFilterSubsampled | back to summary |
|---|---|
| pack-priv void setFilterSubsampled(boolean filterSubsampled) Used internally by filters to signal they have applied subsampling as requested by this options instance.
| |
| setSourceRegion | back to summary |
|---|---|
| public void setSourceRegion(Rectangle sourceRegion) Sets the region of the source image that should be decoded. The region will be clipped to the dimensions of the source image. Setting this value to null will result in the entire image being decoded.
| |
| setSubsamplingOffsetX | back to summary |
|---|---|
| public void setSubsamplingOffsetX(int ssOffsetX) Sets the horizontal subsampling offset for decoding images
| |
| setSubsamplingOffsetY | back to summary |
|---|---|
| public void setSubsamplingOffsetY(int ssOffsetY) Sets the vertical subsampling offset for decoding images
| |
| setSubsamplingX | back to summary |
|---|---|
| public void setSubsamplingX(int ssX) Sets the number of columns to advance in the source for every pixel decoded
| |
| setSubsamplingY | back to summary |
|---|---|
| public void setSubsamplingY(int ssY) Sets the number of rows to advance in the source for every pixel decoded
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | setFilterSubsampled(boolean
Value specifying if the filter could meet the requested options.
Usually a filter will only call this with the value filterSubsampled)true, as the default value
for the flag is false.Overrides org. Used internally by filters to signal they have applied subsampling as requested by this options instance. |
| public void | setSourceRegion(Rectangle
The source region to decode, or null if the entire image should be
decoded. sourceRegion)Overrides org. Sets the region of the source image that should be decoded. |
| public void | setSubsamplingOffsetX(int
The x-axis subsampling offset ssOffsetX)Overrides org. Sets the horizontal subsampling offset for decoding images |
| public void | setSubsamplingOffsetY(int
The y-axis subsampling offset ssOffsetY)Overrides org. Sets the vertical subsampling offset for decoding images |
| public void | setSubsamplingX(int
The x-axis subsampling value ssX)Overrides org. Sets the number of columns to advance in the source for every pixel decoded |
| public void | setSubsamplingY(int
The y-axis subsampling value ssY)Overrides org. Sets the number of rows to advance in the source for every pixel decoded |
| FinalDecodeOptions | back to summary |
|---|---|
| pack-priv FinalDecodeOptions(boolean filterSubsampled) | |
| setFilterSubsampled | back to summary |
|---|---|
| pack-priv void setFilterSubsampled(boolean filterSubsampled) Overrides org. Doc from org. Used internally by filters to signal they have applied subsampling as requested by this options instance.
| |
| setSourceRegion | back to summary |
|---|---|
| public void setSourceRegion(Rectangle sourceRegion) Overrides org. Doc from org. Sets the region of the source image that should be decoded. The region will be clipped to the dimensions of the source image. Setting this value to null will result in the entire image being decoded. | |
| setSubsamplingOffsetX | back to summary |
|---|---|
| public void setSubsamplingOffsetX(int ssOffsetX) Overrides org. Doc from org. Sets the horizontal subsampling offset for decoding images
| |
| setSubsamplingOffsetY | back to summary |
|---|---|
| public void setSubsamplingOffsetY(int ssOffsetY) Overrides org. Doc from org. Sets the vertical subsampling offset for decoding images
| |
| setSubsamplingX | back to summary |
|---|---|
| public void setSubsamplingX(int ssX) Overrides org. Doc from org. Sets the number of columns to advance in the source for every pixel decoded
| |
| setSubsamplingY | back to summary |
|---|---|
| public void setSubsamplingY(int ssY) Overrides org. Doc from org. Sets the number of rows to advance in the source for every pixel decoded
| |