Scale custom icon.

Hi, guys. I'm working on watchface, I added an icon but can't scale it. I was trying to change png file size, but it didn't  help, icon on watchface still the same.

To add icon I did next:

1) add icon in resources/images folder

2) created file bitmap.xml with content\

<resources>
    <bitmap id="Flash" filename="flash.png" />
</resources>

3) Add code in view.mc file

flashIcon = new WatchUi.Bitmap({
            :rezId=>Rez.Drawables.Flash,
            :locX=>140,
            :locY=>200,
            :width=>100,
            :height=>100
        });

flashIcon.draw(dc);

In WatchUi.bitmap I was changing width and height parameters but no success. Icon still the same.

Do you have any ideas how to change icon size?

Top Replies

All Replies