Hello,
like the topictheme already says I’m trying to use Slick (it’s my first time) and my programm works surprising well, but now I met my first error^^
To the Problem:
I have a few "master"pictures, that I create once and don’t reload if I’ve used them. Now I want to rotate this picture, but because I don’t want to work with my master picture I make a copy of it, with the simple command copy() so far so easy. Not I use the rotate command on it (I rotate it 90, 180, 270 and 0 degrees), and than I need a little part of this rotated picture on my display, to get this little part I use the subImage command from the Image class of Slick.
My Problem is, that after I do all that and my programm shows me the result I see, that I have a subimage of the picture, which isn’t rotated… I think, that the problem is the shadow copy that the copy command created… But I’m not sure how to make a FAST hard copy… Maybe you can help me.
Here the code:
Image draw = img.copy();
draw.rotate(grad);
Image newdraw = draw.getSubImage(actx, acty, this.tilewidth-actx, this.tileheigth-acty);
newdraw.draw(0, 0);
Thanks alot for your help, if this isn’t enough code just ask me.
biro