Slick Forums
http://slick.ninjacave.com/forum/

RFE: Set image color
http://slick.ninjacave.com/forum/viewtopic.php?f=4&t=3035
Page 1 of 1

Author:  appel [ Tue Feb 01, 2011 12:59 am ]
Post subject:  RFE: Set image color

I really use the following method a lot, and it's sibling methods:
Code:
g.drawImage(image, x, y, color)


What I like to be able to do is specify the image color for multiple images without specifying it in the parameters of the draw method, e.g.:

Code:
g.setImageColor(Color.blue);
g.drawImage(img, x, y);
img2.drawCentered(x2, y2);
.. etc
g.setImageColor(Color.white); // restore default


The reason I ask for this is because not all image drawing methods contain that color parameter, and I think it would be a nice easy feature to add that helps a lot.

Author:  kevglass [ Wed Mar 09, 2011 2:31 pm ]
Post subject: 

Added in SVN.

Kev

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/