Solved

creating a .bmp file from scratch

Posted on 2004-10-02
4
202 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
Comment Utility
even creating a JPEG/GIF from scratch would do .. but I think this might be much more complicated ..
0
 
LVL 30

Accepted Solution

by:
mayankeagle earned 50 total points
Comment Utility
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
Comment Utility
thanks :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
firstChar challenge 13 83
Starting to learn JAVA, 7 47
compre toata in where clue oracle 4 41
eclipse java  build path 6 18
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

744 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

17 Experts available now in Live!

Get 1:1 Help Now