public void loadImage ( ) throws InterruptedException { synchronized ( this ) { status = 0 ; image . getSource ( ) . startProduction ( this ) ; while ( ( status & ( IMAGEABORTED | IMAGEERROR | SINGLEFRAMEDONE | STATICIMAGEDONE ) ) == 0 ) { wait ( ) ; } } }
Loads an image and returns when a frame is done the image is done an error occurs or the image is aborted .