Solved

Help me about image in java

Posted on 2003-11-29
5
193 Views
Last Modified: 2010-03-31
please help me, the experts
i want to save file . BMP in java language but i don 't know i should to do.
my program have the button to draw the line or rectangular and the circle in jpanel when i draw it i want to save this in to the BMP fotmat please suggest me to do this and when i want to load this file ,how should i do?
thank you so much.
arihandro
arihandro@maildozy.com
0
Comment
Question by:arihandro
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 63 total points
ID: 9842787
Try the following with bmp instead of jpg or png:

http://javaalmanac.com/egs/javax.imageio/Graphic2File.html?l=rel
0
 
LVL 92

Assisted Solution

by:objects
objects earned 62 total points
ID: 9843294
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9845181
If you download these files and place them as indicated, your imageio packes will be be extended to be able to read and write bmp:

http://www.mms-computing.co.uk/uk/co/mmscomputing/imageio/bmp/index.php
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

707 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

11 Experts available now in Live!

Get 1:1 Help Now