Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Recolor imported images
03-22-2009, 02:52 AM #1
- Join Date
- Jun 2008
- Redmond, WA
- Thanked 100 Times in 94 Posts
Recolor imported images
I'm currently working on an RPG-style game whereby the player uses a menu system to interact with the environment.
I have created an image-based font (so that I am not bound by the default Windows fonts) and would like to be able to have it multiple colors.
Each image is imported as such:
ImageDatabase[i] = getImage(getCodeBase(),"images/rfont" + Integer.toString(i) + ".png");
(Where public static Image ImageDatabase;)
I would like to know if there is a way to allow for me to recolor the imported images. (They are all a solid white.) I'm almost certain it could be done but I'm not quite sure how to approach it. I have tried XOR Mode, which has the ability to do what I want with it, but when the rendered images overlap, they become inverted (i.e. XOR) which is very undesirable.
Any suggestions?Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
My posts, comments, code, and suggestions reflect only my personal views.
Web Portfolio and Code Snippets: http://shanechism.com
Users who have thanked ShaneC for this post: