Here you can find the source of drawPixel(BufferedImage img, int x, int y, int color)
public static void drawPixel(BufferedImage img, int x, int y, int color)
//package com.java2s; //License from project: Open Source License import java.awt.image.BufferedImage; public class Main { public static void drawPixel(BufferedImage img, int x, int y, int color) { img.setRGB(x, y, color);/* w w w .ja v a 2 s. c o m*/ } }