Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Images on the Web

 
Shay Gaghe
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Shay Gaghe
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic