Colorize a PNG with transparency

This should be very simple, but lack of mask in android pictures is killing me.

There are declares on other platforms. On all our other platforms I could make it a black and white image and use it as a mask on an otherwise colored image.

What’s a workaround for Android?

Ouch - the RGBSurface.Transform method isn’t supported on Android either.

You’re probably stuck with other Declares or going through the image pixel-by-pixel via RGBSurface.Pixel.

or making all the images with the color I need in advance… ouch.

What’s the use case? UI elements? something else?

Yes. Mostly buttons and icons for list rows.

I can do this, it’s just a pita to prepare all the images in advance.

Add your thumbs up here:
https://tracker.xojo.com/xojoinc/xojo/-/issues/77503

1 Like

Done.

1 Like