Java - Image Rotation - How to use this code?
Hi, can someone please tell me how to use this code? I can't seem to get it to work. Can you give like example with values? :
public abstract void rotate(double theta,
Concatenates the current Graphics2D Transform with a translated rotation transform. Subsequent rendering is transformed by a transform which is constructed by translating to the specified location, rotating by the specified radians, and translating back by the same amount as the original translation. This is equivalent to the following sequence of calls:
Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis.
theta - the angle of rotation in radians
x - the x coordinate of the origin of the rotation
y - the y coordinate of the origin of the rotation