Package java.awt.image

Examples of java.awt.image.BufferedImage.copyData()


            /* Placeholder */
        }

        BufferedImage img = cloneImage(paint.getImage());

        WritableRaster ras = img.copyData(null);

        final int miX = ras.getMinX();
        final int miY = ras.getMinY();
        final int maY = ras.getMinY() + ras.getHeight();

View Full Code Here


    }
  }

  public static BufferedImage takeScreenshot(final Bot bot, final boolean hideUsername) {
    final BufferedImage source = bot.getImage();
    final WritableRaster raster = source.copyData(null);
    final BufferedImage bufferedImage = new BufferedImage(source.getColorModel(), raster,
        source.isAlphaPremultiplied(), null);

    if (hideUsername) {
      final Graphics graphics = bufferedImage.createGraphics();
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.