Solved

Save canvas as a BMP file jdk1.2

Posted on 2001-07-29
5
251 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse argument 14 61
HashTable highest marks enumeration alternative 9 39
How to convert String matching to regex in java 4 34
iterator/ListIterator approach 17 28
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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:

832 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