Hi All,
So I’m using the bitmapData.paletteMap function to turn a greyscale image into a colorized image.
Colorizing the image works fine with my red, green, and blue arrays.
However when i try and add in the alpha array, the whole image goes greyscale again.
Perhaps it’s just my confusion as to how paletteMap works.
Does it scan each pixel in the source image and then based on the 0-255 value per channel, it then does a lookup in the associated array?
So say a pixel was 0xFF990000 - a fully opaque red color
Would the new pixel value be equivalent to:
newAlpha = alphaArray[0xFF]
newRed = redArray[0x99]
newGreen = greenArray[0x00]
newBlue = blueArray[0x00]
Any help would be appreciated.
Thanks!