Examples of resetImage()


Examples of org.jwildfire.image.SimpleImage.resetImage()

  protected void performPixelTransformation(WFImage pImg) {
    SimpleImage img = (SimpleImage) pImg;
    int width = pImg.getImageWidth();
    int height = pImg.getImageHeight();
    if ((this.angle == Angle._90) || (this.angle == Angle._270))
      img.resetImage(height, width);
    Pixel pixel = new Pixel();
    if (((this.angle == Angle._90) && (this.direction == Direction.LEFT))
        || ((this.angle == Angle._270) && (this.direction == Direction.RIGHT)))
    {
View Full Code Here

Examples of org.jwildfire.image.SimpleImage.resetImage()

      height = 1;
    else if (top + height > imgHeight)
      height = imgHeight - top;
    if ((width == imgWidth) && (height == imgHeight))
      return;
    img.resetImage(width, height);
    for (int i = 0; i < height; i++) {
      for (int j = 0; j < width; j++) {
        img.setARGB(j, i, srcImg.getARGBValue(j + left, i + top));
      }
    }
View Full Code Here

Examples of org.openstreetmap.josm.data.imagery.GeorefImage.resetImage()

                    img.flushResizedCachedInstance();
                    BufferedImage bi = img.getImage();
                    // Completely erases images for which transparency has been forced,
                    // or images that should be forced now, as they need to be recreated
                    if (ImageProvider.isTransparencyForced(bi) || ImageProvider.hasTransparentColor(bi)) {
                        img.resetImage();
                    }
                }
            }
            Main.map.mapView.repaint();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.