-
- All Superinterfaces:
- EventListener
public interface IIOReadUpdateListener extends EventListener
An interface used byImageReader
implementations to notify callers of their image and thumbnail reading methods of pixel updates.
-
-
Method Summary
Methods Modifier and Type Method and Description 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.void
passComplete(ImageReader source, BufferedImage theImage)
Reports that the current read operation has completed a progressive pass.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.void
thumbnailPassComplete(ImageReader source, BufferedImage theThumbnail)
Reports that the current thumbnail read operation has completed a progressive pass.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.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.
-
-
-
Method Detail
-
passStarted
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
minX
,minY
,width
, andheight
parameters. If the pass is interlaced, that is, it only updates selected rows or columns, theperiodX
andperiodY
parameters will indicate the degree of subsampling. The set of bands that may be affected is indicated by the value ofbands
.- Parameters:
source
- theImageReader
object calling this method.theImage
- theBufferedImage
being updated.pass
- the numer of the pass that is about to begin, starting with 0.minPass
- the index of the first pass that will be decoded.maxPass
- the index of the last pass that will be decoded.minX
- the X coordinate of the leftmost updated column of pixels.minY
- the Y coordinate of the uppermost updated row of pixels.periodX
- the horizontal spacing between updated pixels; a value of 1 means no gaps.periodY
- the vertical spacing between updated pixels; a value of 1 means no gaps.bands
- an array ofint
s indicating the the set bands that may be updated.
-
imageUpdate
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
ImageReader
implementation may choose how often to provide updates. Each update specifies that a given region of the image has been updated since the last update. A region is described by its spatial bounding box (minX
,minY
,width
, andheight
); X and Y subsampling factors (periodX
andperiodY
); and a set of updated bands (bands
). For example, the update: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)
- Parameters:
source
- theImageReader
object calling this method.theImage
- theBufferedImage
being updated.minX
- the X coordinate of the leftmost updated column of pixels.minY
- the Y coordinate of the uppermost updated row of pixels.width
- the number of updated pixels horizontally.height
- the number of updated pixels vertically.periodX
- the horizontal spacing between updated pixels; a value of 1 means no gaps.periodY
- the vertical spacing between updated pixels; a value of 1 means no gaps.bands
- an array ofint
s indicating which bands are being updated.
-
passComplete
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.- Parameters:
source
- theImageReader
object calling this method.theImage
- theBufferedImage
being updated.- See Also:
ImageReadParam.setSourceProgressivePasses(int, int)
-
thumbnailPassStarted
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.- Parameters:
source
- theImageReader
object calling this method.theThumbnail
- theBufferedImage
thumbnail being updated.pass
- the numer of the pass that is about to begin, starting with 0.minPass
- the index of the first pass that will be decoded.maxPass
- the index of the last pass that will be decoded.minX
- the X coordinate of the leftmost updated column of pixels.minY
- the Y coordinate of the uppermost updated row of pixels.periodX
- the horizontal spacing between updated pixels; a value of 1 means no gaps.periodY
- the vertical spacing between updated pixels; a value of 1 means no gaps.bands
- an array ofint
s indicating the the set bands that may be updated.- See Also:
passStarted(javax.imageio.ImageReader, java.awt.image.BufferedImage, int, int, int, int, int, int, int, int[])
-
thumbnailUpdate
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.- Parameters:
source
- theImageReader
object calling this method.theThumbnail
- theBufferedImage
thumbnail being updated.minX
- the X coordinate of the leftmost updated column of pixels.minY
- the Y coordinate of the uppermost updated row of pixels.width
- the number of updated pixels horizontally.height
- the number of updated pixels vertically.periodX
- the horizontal spacing between updated pixels; a value of 1 means no gaps.periodY
- the vertical spacing between updated pixels; a value of 1 means no gaps.bands
- an array ofint
s indicating which bands are being updated.- See Also:
imageUpdate(javax.imageio.ImageReader, java.awt.image.BufferedImage, int, int, int, int, int, int, int[])
-
thumbnailPassComplete
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.- Parameters:
source
- theImageReader
object calling this method.theThumbnail
- theBufferedImage
thumbnail being updated.- See Also:
passComplete(javax.imageio.ImageReader, java.awt.image.BufferedImage)
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
15/11/2024 00:18:23 Cette version de la page est en cache (à la date du 15/11/2024 00:18:23) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 31/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/imageio/event/IIOReadUpdateListener.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.