I have a pixmap as a simple two dimensional array of pixels I rendered using FreeType (or read using libpng in some cases).
Is there any simple algorithm that allows me to tint this pixel data in a colour of my choosing? I just need to change the colours, alpha values should stay as they are. Also, it'd be fine if this only works with fully white pixels.