No matter what I try I can't tint the bitmap - it is always drawn in black. Tested on Venu3, Fenix7X and Epix2 (all in the sim).
I used a simply SVG from FontAwesome (it contains a path only maybe that is problematic?) and added it like following (and even more variants):
<bitmap id="svg_gear" filename="svgs/test.svg" packingFormat="png" compress="true" scaleX="32" scaleY="32"/> <bitmap id="svg_gear" filename="svgs/test.svg" packingFormat="default" scaleX="32" scaleY="32"/> <bitmap id="svg_gear" filename="svgs/test.svg" packingFormat="png" scaleX="32" scaleY="32"> <palette disableTransparency="false"> <color>FF0000</color> </palette> </bitmap>
And draw it like following:
dc.drawBitmap2( (w - (image as BitmapResource).getWidth()) / 2, (h - (image as BitmapResource).getHeight()) / 2, (image as BitmapResource), { :tintColor => Graphics.COLOR_RED } );
Nothing works.
If I use a PNG with a simple form like rect instead of path, everything works... Can this be solved?