Getting a Sub-Image of an Image - Java 2D Graphics

Java examples for 2D Graphics:Image

Description

Getting a Sub-Image of an Image

import java.awt.image.BufferedImage;

public class Main {
  public static void main(String[] argv) {
    // From an Image
    BufferedImage bufferedImage = null; 

    // From a BufferedImage
    bufferedImage = bufferedImage.getSubimage(x, y, w, h);
  }

}

Related Tutorials