Hey, sorry this took so long, but last time I tried it seemed as though the forums were down.
I hope this is what you wanted.
Code:
package boxRiders;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.fills.GradientFill;
import org.newdawn.slick.geom.Rectangle;
public class RotateTest extends BasicGame
{
Image testimg;
public RotateTest()
{
super("RotateTest");
}
public void init(GameContainer container) throws SlickException
{
testimg = new Image("res/sprites/UI/victory_banner.png");
}
public void update(GameContainer container, int delta)
{
//Do nothing
}
public void render(GameContainer container, Graphics g)
{
Color a = new Color(0, 204, 0);
Color b = new Color(153, 255, 0);
GradientFill back = new GradientFill(0, 0, a, 0, 384, b);
Rectangle bshape = new Rectangle(0, 0, 1025, 769);
g.fill(bshape, back);
g.rotate(512, 768/2, -7);
g.drawImage(testimg, -40, 425);
g.resetTransform();
}
public static void main(String[] args)
{
try {
AppGameContainer app = new AppGameContainer(new RotateTest());
app.setDisplayMode(1024,768,false);
app.start();
} catch (SlickException e) {
e.printStackTrace();
}
}
}
And the image.
Remember to rename the image and change the path in the code.