muskad202
asked on
creating a .bmp file from scratch
hi !!
in my app, i need to create a bitmap file from scratch (i.e, i will specify the width, height of the image, and the RGB values of each pixel).
can anyone help :)
thanks :)
muskad202
in my app, i need to create a bitmap file from scratch (i.e, i will specify the width, height of the image, and the RGB values of each pixel).
can anyone help :)
thanks :)
muskad202
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
java.awt.image.BufferedIma ge image = new java.awt.image.BufferedIma ge(width, height, BufferedImage.INT_RGB);
// draw on it, then
javax.imageio.ImageIO.writ e(image, "JPEG", new File("x.jpg"));
// draw on it, then
javax.imageio.ImageIO.writ
ASKER
thanks :)
ASKER