Solved

Save canvas as a BMP file jdk1.2

Posted on 2001-07-29
5
255 Views
Last Modified: 2010-08-05
 Hello there, I would like to save a white canvas with some colored lines, boxes, circles in it (a whiteborad) as a BMP file.

  I am using jdk 1.2. Any help (web-sites, code snipplets, etc) is greatly appreciated.

    Thanks in advance.

0
Comment
Question by:girionis
  • 2
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
rrz earned 100 total points
ID: 6332050
Look at
http://java.sun.com/products/java-media/jai/iio.html
 or if you can go with .gif  look at GifEncoder at
http://acme.com 
0
 
LVL 27

Expert Comment

by:rrz
ID: 6332069
that was supposed to be http://www.acme.com/java/software/
0
 
LVL 4

Expert Comment

by:Neutron
ID: 6332105
Try out this class with source code and an example.

http://www.holtsoft.com/java/extras/home.html

Additionally, class saves BMP with minimum number of colors.
It is free for non-commercial use.

Greetings,
    Ntr:)
0
 
LVL 4

Expert Comment

by:Neutron
ID: 6332108
Btw, this info is for free too :-)

Greetings,
    Ntr:)
0
 
LVL 92

Expert Comment

by:objects
ID: 6332630
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 100
servlet filter example 37 84
Glassfish admin console not working 1 60
Java array 10 63
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

733 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