ImageReader implementations to
notify callers of their image and thumbnail reading methods of
pixel updates.
javax.imageio.ImageReader#addIIOReadUpdateListener , javax.imageio.ImageReader#removeIIOReadUpdateListener
| Modifier and Type | Method and Description |
|---|---|
| public void | imageUpdate(ImageReader
the source, BufferedImage ImageReader object calling this method.the theImage, int BufferedImage being updated.the X coordinate of the leftmost updated column
of pixels. minX, int the Y coordinate of the uppermost updated row
of pixels. minY, int the number of updated pixels horizontally. width, int the number of updated pixels vertically. height, int the horizontal spacing between updated pixels;
a value of 1 means no gaps. periodX, int the vertical spacing between updated pixels;
a value of 1 means no gaps. periodY, int[] an array of bands)ints indicating which
bands are being updated.Reports that a given region of the image has been updated. |
| public void | passComplete(ImageReader
the source, BufferedImage ImageReader object calling this
method.the theImage)BufferedImage being updated.Reports that the current read operation has completed a progressive pass. |
| public void | passStarted(ImageReader
the source, BufferedImage ImageReader object calling this
method.the theImage, int BufferedImage being updated.the number of the pass that is about to begin,
starting with 0. pass, int the index of the first pass that will be decoded. minPass, int the index of the last pass that will be decoded. maxPass, int the X coordinate of the leftmost updated column
of pixels. minX, int the Y coordinate of the uppermost updated row
of pixels. minY, int the horizontal spacing between updated pixels;
a value of 1 means no gaps. periodX, int the vertical spacing between updated pixels;
a value of 1 means no gaps. periodY, int[] an array of bands)ints indicating the
set bands that may be updated.Reports that the current read operation is about to begin a progressive pass. |
| public void | thumbnailPassComplete(ImageReader
the source, BufferedImage ImageReader object calling this
method.the theThumbnail)BufferedImage thumbnail
being updated.Reports that the current thumbnail read operation has completed a progressive pass. |
| public void | thumbnailPassStarted(ImageReader
the source, BufferedImage ImageReader object calling this
method.the theThumbnail, int BufferedImage thumbnail
being updated.the number of the pass that is about to begin,
starting with 0. pass, int the index of the first pass that will be decoded. minPass, int the index of the last pass that will be decoded. maxPass, int the X coordinate of the leftmost updated column
of pixels. minX, int the Y coordinate of the uppermost updated row
of pixels. minY, int the horizontal spacing between updated pixels;
a value of 1 means no gaps. periodX, int the vertical spacing between updated pixels;
a value of 1 means no gaps. periodY, int[] an array of bands)ints indicating the
set bands that may be updated.Reports that the current thumbnail read operation is about to begin a progressive pass. |
| public void | thumbnailUpdate(ImageReader
the source, BufferedImage ImageReader object calling this method.the theThumbnail, int BufferedImage thumbnail
being updated.the X coordinate of the leftmost updated column
of pixels. minX, int the Y coordinate of the uppermost updated row
of pixels. minY, int the number of updated pixels horizontally. width, int the number of updated pixels vertically. height, int the horizontal spacing between updated pixels;
a value of 1 means no gaps. periodX, int the vertical spacing between updated pixels;
a value of 1 means no gaps. periodY, int[] an array of bands)ints indicating which
bands are being updated.Reports that a given region of a thumbnail image has been updated. |
| imageUpdate | back to summary |
|---|---|
| public void imageUpdate(ImageReader source, BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) Reports that a given region of the image has been updated. The application might choose to redisplay the specified area, for example, in order to provide a progressive display effect, or perform other incremental processing. Note that different image format readers may produce decoded pixels in a variety of different orders. Many readers will produce pixels in a simple top-to-bottom, left-to-right-order, but others may use multiple passes of interlacing, tiling, etc. The sequence of updates may even differ from call to call depending on network speeds, for example. A call to this method does not guarantee that all the specified pixels have actually been updated, only that some activity has taken place within some subregion of the one specified. The particular
minX = 10
minY = 20
width = 3
height = 4
periodX = 2
periodY = 3
bands = { 1, 3 }
would indicate that bands 1 and 3 of the following pixels were
updated:
(10, 20) (12, 20) (14, 20) (10, 23) (12, 23) (14, 23) (10, 26) (12, 26) (14, 26) (10, 29) (12, 29) (14, 29)
| |
| passComplete | back to summary |
|---|---|
| public void passComplete(ImageReader source, BufferedImage theImage) Reports that the current read operation has completed a progressive pass. Readers of formats that support progressive encoding should use this to notify clients when each pass is completed when reading a progressively encoded image.
| |
| passStarted | back to summary |
|---|---|
| public void passStarted(ImageReader source, BufferedImage theImage, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands) Reports that the current read operation is about to begin a progressive pass. Readers of formats that support progressive encoding should use this to notify clients when each pass is completed when reading a progressively encoded image. An estimate of the area that will be updated by the pass is
indicated by the
| |
| thumbnailPassComplete | back to summary |
|---|---|
| public void thumbnailPassComplete(ImageReader source, BufferedImage theThumbnail) Reports that the current thumbnail read operation has completed a progressive pass. Readers of formats that support progressive encoding should use this to notify clients when each pass is completed when reading a progressively encoded thumbnail image.
| |
| thumbnailPassStarted | back to summary |
|---|---|
| public void thumbnailPassStarted(ImageReader source, BufferedImage theThumbnail, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands) Reports that the current thumbnail read operation is about to begin a progressive pass. Readers of formats that support progressive encoding should use this to notify clients when each pass is completed when reading a progressively encoded thumbnail image.
| |
| thumbnailUpdate | back to summary |
|---|---|
| public void thumbnailUpdate(ImageReader source, BufferedImage theThumbnail, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) Reports that a given region of a thumbnail image has been updated. The application might choose to redisplay the specified area, for example, in order to provide a progressive display effect, or perform other incremental processing.
| |