Solved

Help me about image in java

Posted on 2003-11-29
5
195 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 77
Java Timer (static) 9 43
reverse digits of a number using for loop 5 40
servlet example 17 29
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

786 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