I´m trying to use bitmap2 but it does not work and no errors are shown in console this is the code
private function drawBackground(dc as Dc) as Void {
if (null != _offscreenBuffer) {
if ( Graphics.Dc has :drawBitmap2 ){
dc.drawBitmap2(0, 0, _offscreenBuffer, {:tintColor => mFgColor});
}else{
dc.drawBitmap(0, 0, _offscreenBuffer);
}
}
}and this is the bitmap.xml file I have also try automatic palette false and true
<resources>
<bitmap id="Evertop" filename="drawables/Evertop.png">
<palette disableTransparency="true">
<color>000000</color>
<color>AAAAAA</color>
<color>555555</color>
</palette>
</bitmap>
<bitmap id="Evertopd" filename="drawables/Evertopd.png">
<palette disableTransparency="true">
<color>000000</color>
<color>AAAAAA</color>
<color>555555</color>
<color>AA0000</color>
</palette>
</bitmap>
</resources>I don´t know if it works