Example usage for java.awt.image ImageConsumer IMAGEABORTED

List of usage examples for java.awt.image ImageConsumer IMAGEABORTED

Introduction

In this page you can find the example usage for java.awt.image ImageConsumer IMAGEABORTED.

Prototype

int IMAGEABORTED

To view the source code for java.awt.image ImageConsumer IMAGEABORTED.

Click Source Link

Document

The image creation process was deliberately aborted.

Usage

From source file:GifEncoder.java

public void imageComplete(int status) {
    producer.removeConsumer(this);
    if (status == ImageConsumer.IMAGEABORTED)
        iox = new IOException("image aborted");
    else {/*from  w  w  w  . j a v  a2 s.c o m*/
        try {
            encodeFinish();
            encodeDone();
        } catch (IOException e) {
            iox = e;
        }
    }
    stop();
}