Java Draw Image drawPixel(BufferedImage img, int x, int y, int color)

Here you can find the source of drawPixel(BufferedImage img, int x, int y, int color)

Description

draw Pixel

License

Open Source License

Declaration

public static void drawPixel(BufferedImage img, int x, int y, int color) 

Method Source Code

//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*/
    }
}

Related

  1. drawImageWithClipping(Graphics g, BufferedImage img)
  2. drawInMiddle(Graphics g, Image image, String text)
  3. drawLabel(BufferedImage image, String text)
  4. drawNormalImage(Rectangle2D bounds, Graphics2D g2, Image image, ImageObserver observer, int imageWidth, int imageHeight)
  5. drawOnto(final BufferedImage pDestination, final Image pSource)
  6. drawPixel(int x, int y, Color color, BufferedImage displayMap)
  7. drawScaledImage(Graphics graphics, BufferedImage image, int x, int y, int w, int h, int left, int right)
  8. drawScaledImage(Image image, Component canvas, Graphics g)
  9. drawSquare(BufferedImage image, int x, int y, int size, int pixel)