Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Codeasaurus Rex
    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

  2. Users who have thanked ShaneC for this post:

    sereoga92 (03-30-2009)

  3. AdSlot6


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts