Java BufferedImage Crop cropImage(BufferedImage src, int x, int y, int w, int h)

Here you can find the source of cropImage(BufferedImage src, int x, int y, int w, int h)

Description

crop Image

License

Open Source License

Declaration

public static BufferedImage cropImage(BufferedImage src, int x, int y,
            int w, int h) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.image.BufferedImage;

public class Main {
    public static BufferedImage cropImage(BufferedImage src, int x, int y,
            int w, int h) {
        BufferedImage dest = src.getSubimage(x, y, w, h);
        return dest;
    }/*from   w  ww  .  j a v  a2  s.c  om*/
}

Related

  1. cropImage(BufferedImage image, int width, int height)
  2. cropImage(BufferedImage image, int width, int height)
  3. cropImage(BufferedImage image, int x, int y, int width, int height)
  4. cropImage(BufferedImage image, int x1, int y1, int x2, int y2)
  5. cropImage(BufferedImage src, int x, int y, int w, int h)
  6. cropImage(final BufferedImage img, int x, int y, int w, int h, double xScale, double yScale)
  7. cropImageRelative(BufferedImage image, double leftCropFactor, double rightCropFactor, double topCropFactor, double bottomCropFactor)
  8. croppedCopy(BufferedImage image, int startX, int startY, int endX, int endY)
  9. cropScale(BufferedImage source, int width, int height)