API java : IIOReadUpdateListener


javax.imageio.event
Interface IIOReadUpdateListener

All Superinterfaces:
EventListener

public interface IIOReadUpdateListener
extends EventListener

An interface used by ImageReader implementations to notify callers of their image and thumbnail reading methods of pixel updates.

See Also:
ImageReader.addIIOReadUpdateListener(javax.imageio.event.IIOReadUpdateListener), ImageReader.removeIIOReadUpdateListener(javax.imageio.event.IIOReadUpdateListener)

Method Summary
 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, and height parameters. If the pass is interlaced, that is, it only updates selected rows or columns, the periodX and periodY parameters will indicate the degree of subsampling. The set of bands that may be affected is indicated by the value of bands.

Parameters:
source - the ImageReader object calling this method.
theImage - the BufferedImage 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 of ints 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, and height); X and Y subsampling factors (periodX and periodY); and a set of updated bands (bands). For example, the update:

  1. minX = 10
  2. minY = 20
  3. width = 3
  4. height = 4
  5. periodX = 2
  6. periodY = 3
  7. bands = { 1, 3 }
would indicate that bands 1 and 3 of the following pixels were updated:
  1. (10, 20) (12, 20) (14, 20)
  2. (10, 23) (12, 23) (14, 23)
  3. (10, 26) (12, 26) (14, 26)
  4. (10, 29) (12, 29) (14, 29)

Parameters:
source - the ImageReader object calling this method.
theImage - the BufferedImage 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 of ints 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 - the ImageReader object calling this method.
theImage - the BufferedImage 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 - the ImageReader object calling this method.
theThumbnail - the BufferedImage 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 of ints 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 - the ImageReader object calling this method.
theThumbnail - the BufferedImage 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 of ints 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 - the ImageReader object calling this method.
theThumbnail - the BufferedImage thumbnail being updated.
See Also:
passComplete(javax.imageio.ImageReader, java.awt.image.BufferedImage)

Ces informations proviennent du site de http://java.sun.com

Remarques

Contenu

Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :

Quels sont les motivations de cette démarche?

Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.

Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.

Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.

Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.

Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.

Réseaux sociaux

Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.

 

Nuage de mots clés

7 mots clés dont 0 définis manuellement (plus d'information...).

Avertissement

Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.

Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.

 

Astuce pour imprimer les couleurs des cellules de tableaux : http://www.gaudry.be/ast-rf-450.html
Aucun commentaire pour cette page

© Ce document issu de l′infobrol est enregistré sous le certificat Cyber PrInterDeposit Digital Numbertection. Enregistrement IDDN n° 5329-2984
Document créé le 31/08/06 23:59, dernière modification le Vendredi 17 Juin 2011, 12:12
Source du document imprimé : http://www.gaudry.be/java-api-rf-javax/imageio/event/IIOReadUpdateListener.html Document affiché 1 fois ce mois de Juin.
St.Gaudry©07.01.02
 
l'infobrol
Nous sommes le Samedi 02 Juin 2012, 00:18, toutes les heures sont au format GMT+1.00 Heure, heure d'été (+1)