Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

creating a .bmp file from scratch

Posted on 2004-10-02
4
Medium Priority
?
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Not only does Prezi allow you to create non-linear presentations, it also makes it easy to apply transition animations between your frames. Learn how to apply a fade-in transition to select items and entire frames in this tutorial Select "Edit Path"…
Suggested Courses

715 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