This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
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
Joined: Sep 03, 2001
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).