Mega Code Archive

 
Categories / Java Tutorial / 2D Graphics
 

A buffered image is a type of image whose pixels can be modified

import java.awt.image.BufferedImage; public class Main {   public static void main(String[] argv) throws Exception {     int width = 100;     int height = 100;     BufferedImage bimage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);     bimage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);   } }