|
I got a problem with my newly started Slick project. It is not that complex but it could be a bit confusing, cause i am not that familiar with the English language. But I really hope someone can help me with this. ^^ Everything worked fine about my project until I decided to build in a zoom-option. It makes the render()-method scale all Images twice their original size when drawn. This made all Images that were created by getSubImage from another Image include pixels from the neighbouring SubImages at the edges (dont know if this is intended or some kind of bug^^). I solved this problem by letting the init()-method create new Images and Graphics by Image.getGraphics() and draw every SubImage onto them. This is very time consuming although the project is in an initial state, and I fear this will make the project crush later when it includes more ressources. (I hope I could describe my issue properly. ^^) So is there a more effective way of cloning SubImages or (even better) a way to scale SubImages properly.
|