Slick Forums http://slick.ninjacave.com/forum/ |
|
[Bug] Image.getColor http://slick.ninjacave.com/forum/viewtopic.php?f=4&t=4908 |
Page 1 of 1 |
Author: | wh1zz4rd [ Sat Apr 28, 2012 1:23 pm ] |
Post subject: | [Bug] Image.getColor |
Author: | davedes [ Sat May 12, 2012 6:16 pm ] |
Post subject: | Re: [Bug] Image.getColor |
getColor acts on the backing texture, which itself isn't being flipped/scaled, i.e. along those lines image.getScaledCopy(..).getColor(..) will not work as expected. I'll clear this up in the docs. I'll add a check for flipped images, though. Why do you need this for screenshots, anyways? You would take a screenshot with code that looks . I can wrap this as a static method in Slick, if you'd like. ![]() |
Author: | wh1zz4rd [ Sun May 13, 2012 5:37 am ] | ||
Post subject: | Re: [Bug] Image.getColor | ||
|
Author: | davedes [ Sun May 13, 2012 7:30 am ] |
Post subject: | Re: [Bug] Image.getColor |
Yeah, I just added it a small change. Let me know if the new code produces problems. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |