I am working on a Java 2d game, I want to make a method, to check id the images i will update are allready being rendered completely, if they are, then they are not going to be re-drawed.
And now i am stuck. I searched for a way to do this and i found that imageUpdate(Image, InfoFlags, x, y, w, h) its the best method that fits my needs.
I think(anyone correct me if i am wrong) That this returns false if the image is not complety rendered.
Here are my questions. What are Info Flags? Can anyone give an exmaple of this method? Do I need an Image Observer? What is an ImageObser and what it does?
Thanks
Did you take a look at the java docs? They should be able to answer your question.
http://docs.oracle.com/javase/7/docs/api/java/awt/image/ImageObserver.html#imageUpdate(java.awt.Image, int, int, int, int, int)