Acknowledged

Bitmap scaleX/scaleY doesn't work with Connect IQ 6.3.0 SDK

I set a png as bitmap in the drawables.xml like this with scaleX="X%" and scaleY="X%"
While these arguments work in SDK 6.2.0 and lower they do not work any longer with SDK 6.3.0:

    <bitmap id="testpix" filename="../../resources/drawables/test.png" dithering="none" scaleX="9.82%" scaleY="9.82%">
        <palette disableTransparency="false">
            <color>FFFFFF</color>
        </palette>
     </bitmap>

The bitmap is shown in a fixed small size no matter what I set in scaleX / scaleY. This happens in the simulator and on a real device.

In code, the file is loaded like this:

var test = WatchUi.loadResource(Rez.Drawables.testpix);

And drawn like this:

dc.drawBitmap(dx, dy, test);

Let me know if you need more information

  • Sorry for the late reply, as I don't have much time currently I couldn't test it properly - the scaling works indeed in 6.3.0, but differently compared to 6.2.0. At least in the simulator and on the Epix 2 pro (47mm) on which I tested it.

    The image seems to be a factor smaller with the same values for scaleX and scaleY.

    Also, the source image is in a 2:1 format and is scaled correctly that way in 6.2.0.

    In 6.3.0 it is in 1:1 format and therefore needs a different value for scaleX.

  • Which device were you seeing this issue on? I have been in the process of attempting to replicate, but I have a feeling this may be related to a specific device. I have attempted on a Fenix 7 device and I am not seeing any issues with bitmap scaling.