Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 25, 2013 12:55 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Scaling SubImages
PostPosted: Thu Mar 08, 2012 10:47 am 
Offline

Joined: Thu Mar 08, 2012 10:09 am
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Senshi and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group