I simply don’t understand this method, can anyone explain to me how this works or any links to tutorials on this?
I know (dx1,dy1,dx2,dy2) is the rectangle to draw (right?) … but the (sx1,sy1,sx2,sy2) has got me totally confused.
I read this example (http://www.javaworld.com/javaworld/javatips/jw-javatip32.html) over and over again, but just couldn’t understand how he can draw that image (first image).
public abstract boolean drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver observer)