-
Graphics.drawImage
In the following code line what is 0 and -60 refering to?
Is it the X and Y that the image is to be drawn at in the Graphics object g or is it the X and Y of the image offscreenImg to be extracted and drawn at 0, 0 in the object g?
Code:
'
'
g.drawImage(offscreenImg, 0, -60, this);
'
'
-
Re: Graphics.drawImage
X & Y of the clip the graphics object is drawing
-
Re: Graphics.drawImage
So drawImage(image, 20, 20, this); will clip the image at 20, 20 and draw it on a Graphics object at 0, 0?
-
Re: Graphics.drawImage
The image is drawn with its top-left corner at (x, y) in this graphics context's coordinate space
-
Re: Graphics.drawImage
Oh, just the opposite then of what I said above.