Solved

creating a .bmp file from scratch

Posted on 2004-10-02
4
203 Views
Last Modified: 2013-11-19
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
0
Comment
Question by:muskad202
  • 2
4 Comments
 
LVL 2

Author Comment

by:muskad202
ID: 12206321
even creating a JPEG/GIF from scratch would do .. but I think this might be much more complicated ..
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 50 total points
ID: 12206501
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12206546
java.awt.image.BufferedImage image = new java.awt.image.BufferedImage(width, height, BufferedImage.INT_RGB);
// draw on it, then
javax.imageio.ImageIO.write(image, "JPEG", new File("x.jpg"));
0
 
LVL 2

Author Comment

by:muskad202
ID: 12206547
thanks :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now