[5644] in java-interest
Questions about Images
daemon@ATHENA.MIT.EDU (Vincent Warscotte)
Wed Feb 21 05:11:15 1996
From: Vincent Warscotte <Warscotte@tele.ucl.ac.be>
Date: Wed, 21 Feb 1996 09:37:41 +0100 (MET)
To: java-interest@java.sun.com
Hello,
I have two questions about images :
1. How can I download an Image from within a JAVA Application ?
The method 'getImage(URL)' works with Applets but not with
Applications. And the following statement doesn't seem to work :
Image myimage;
myimage = (Image) myURL.getContent();
(where myURL has been declared and initialized )
2. Is it possible to define my own image format ? And how ?
I would like to use images compressed with another algorithm
than jpeg. I have a DataInputStream that contains the data and
two int for the height and the width of my image. The problem
I have, is to create a new method
'public Image createImage(int width, int height, DataInputStream data)'
in a particular class.
Expressed in a more general way : how to create an image from its
pixel values and dimensions ?
Can someone help me ?
Thanks in advance,
Vincent
Warscotte Vincent - Research Assistant
Laboratoire de Telecommunications et teledetection
Universite Catholique de Louvain
Louvain-la-Neuve
Belgium
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com