I have created an image object on my screen. I have set the size to a specific specification (Height 24, Width 24) and added a border by setting the border style to 1. However, when it is displayed it seems to be scaling the image depending upon the size of the screen.
How can I stop this from happening ?
For height and width I suggest assigning a class to your object and use "vw" for your width and set height to auto. In the below example width of your picture regardless of the size of the phone will take 40% of the "viewable width" and height will be defined accordingly. Depending on your design you can assign a size to height and set width to auto. You also can use "vh" or "vw" for the height if you wish. From the top of my head, I think auto does not work properly all the time, so you might perhaps use the second class since your picture's height and width are equal.
Hello to all,
In addition to the Amin's suggestion (thanks for that, sir, I really appreciate it), maybe it's important to know also the context in which we use the image. For example, if we are using an Image control of AB, or if we use an IMG HTML tag inside an HTML control of AB. You can take a look at the "Images" sample.
Everybody can read the DecSoft's support forum for learning purposes, however only DecSoft's customers can post new threads. Purchase one or more licenses of some DecSoft's products in order to give this and other benefits.