예제 #1
0
  /** Disposes of all resources associated with a particular instance of the ScreenshotWorker. */
  public void dispose() {
    if (paintSurface != null) {
      paintSurface.dispose();
    }

    if (imageBundle != null) {
      imageBundle.dispose();
      imageBundle = null;
    }

    paintColors = null;
    paintSurface = null;

    freeResources();
  }
예제 #2
0
 public void setDisplayedImage(Image i) {
   imageBundle.setDisplayedImage(i);
   paintSurface.syncScrollBars();
 }
예제 #3
0
 public Image getSimpleImage() {
   return paintSurface.getImage();
 }