How do i create new bmp image in java from int array that contains pixels (from getPixel() of pixelGrabber class) ?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make a BufferedImage and call setPixel.
BufferedImage: http://download.oracle.com/javase/1.4.2/docs/api/java/awt/image/BufferedImage.html
If you want BMP file then you can use ImageIO.write(bufferedImage,”BMP”, new File(“mybmp.bmp”));
I would give you the link to ImageIO class but Stack Overflow is preventing me from spamming.