File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes About Images on the Web Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "About Images on the Web" Watch "About Images on the Web" New topic
Author

About Images on the Web

Shay Gaghe
Ranch Hand

Joined: Sep 03, 2001
Posts: 102
Hello guys!
Im working on server/client program that involve Images. the server sends to client an http address describing the image location on the web , the client gets this address and make an Image object ( getImage(http address)) .
Afterward this Image object inserted to an Hashtable pointing to the current client name. In each time that the client be selected from list , I�ll get the Image object of him and I�ll sent it to be drowen in a canvas( that add() to a Jframe)
My question is ;I wonder if each time when I�ll call to an Image object to be drawn I will wait until the Image object will load itself from the http address that I gave from the first place or that the Image object store all the needed info and just going to be drawed without delay???
If I had to wait what the alternativs???
I hope it will be understandable
Thanks in advance
Shay
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Some of the overloaded drawString methods cache the Image and some don't. The API is fairly clear about this.
If you want more control over such things you need to look into the JAI (Java Advanced Imaging API).


"JavaRanch, where the deer and the Certified play" - David O'Meara
Shay Gaghe
Ranch Hand

Joined: Sep 03, 2001
Posts: 102
how can i obtain JAI?
Originally posted by Cindy Glass:
Some of the overloaded drawString methods cache the Image and some don't. The API is fairly clear about this.
If you want more control over such things you need to look into the JAI (Java Advanced Imaging API).

Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521

They are available at Sun st:
http://java.sun.com/products/java-media/jai/INSTALL-1_0_2.html
Training:
http://developer.java.sun.com/developer/onlineTraining/javaai/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About Images on the Web