I have a 8bpp bitmap with a custom 256 color palette where certain (two) colors in a palette (pink, green) indicate transparency. I could use the MakeTransparent(color)method (twice for each color) on a bitmap but it converts it to 32bpp. So instead I’m using: and then which draws the bitmap as it should, but only makes the pink colors transparent. How do I do this also for the second color (green)?

There’s only one color key. Why do you need a second of they’re both gonna be transparent anyway?

You can define high and low color-key values so that a range of colors between these two color keys becomes transparent. By setting high and low values to pink, basically only pink becomes transparent.

source