public void setDispose(int code) {
        if (code >= 0) {
            dispose = code;
        }
    }
Sets the GIF frame disposal code for the last added frame
and any subsequent frames.  Default is 0 if no transparent
color has been set, otherwise 2.
@param code int disposal code.
plugins/base-plugin/src/main/java/com/github/hui/quick/plugin/base/gif/GifEncoder.java