public boolean imageUpdate(Image img,int infoflags,int x,int y,int width,int height){
  if ((infoflags & ImageObserver.ALLBITS) != 0) {
    if (colorModel == COLORMODEL_IMAGEICON) {
      setImage(img);
    }
  }
  if ((infoflags & ImageObserver.WIDTH) != 0) {
    this.width=width;
  }
  if ((infoflags & ImageObserver.HEIGHT) != 0) {
    this.height=height;
  }
  return !(this.bitmap != null && this.width > 0 && this.height > 0);
}

public boolean imageUpdate ( Image img , int infoflags , int x , int y , int width , int height ) { if ( ( infoflags & ImageObserver . ALLBITS ) != 0 ) { if ( colorModel == COLORMODEL_IMAGEICON ) { setImage ( img ) ; } } if ( ( infoflags & ImageObserver . WIDTH ) != 0 ) { this . width = width ; } if ( ( infoflags & ImageObserver . HEIGHT ) != 0 ) { this . height = height ; } return ! ( this . bitmap != null && this . width > 0 && this . height > 0 ) ; }
from the image observer interface . called when the image bits have arrived , and therefore calls setimage ( ) to reset all the omrasterobject parameters . < br > don ' t call this method !
