Jacks of Various Sizes

Jacks of Various Sizes: Resizing an image can be useful at times. In order to resize your image you use the following function in your paint method:

g.drawImage(image, sx, sy, w, h, this);

Where sx and sy are the starting points and w and h are the width and height, respectively. In this applet, the image furthest to the left is regular size and the other three show the image resized in various ways. You will notice a fair amount of distortion in some cases.