Changing Colours in an NSImage



I have an Image that has a transparent background, the foreground image is made up totally of the (NSColor blackColor), is this an easy way to replace the “blackColor” with another Color? As an example:

I have a Letter “A” in a 128 x 128 image, the “A” is Black and the background is transparent, I want to change the Colour (in the same way as you would change the colour by changing a Text Attribute).

Thanks for any insights!

All the Best

Join { to automatically receive all group messages.