Using AffineTransform I transform the image.
Graphics2D provides the following method :
drawImage(Image img, AffineTransform xform, ImageObserver obs)
I need to draw the image not in the left upper corner, but somewhere else, for instance in the middle of the panel.
How could I give coordinates, which to start drawing from?
Please, give some advice!
Graphics2D provides the following method :
drawImage(Image img, AffineTransform xform, ImageObserver obs)
I need to draw the image not in the left upper corner, but somewhere else, for instance in the middle of the panel.
How could I give coordinates, which to start drawing from?
Please, give some advice!
