Solved

creating a .bmp file from scratch

Posted on 2004-10-02
4
204 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

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…
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

831 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