Questions tagged [device-independent-pixels]
4 questions
0
votes
1 answer
Why is increasing the DPI of my QImage also increasing the size of my text?
Typically, when we increase DPI without changing anything else, the image/text should decrease in size. This is because more dots/pixels are drawn per inch, hence, decreasing the size. However, I have found the opposite behaviour here where…

J. Doe
- 92
- 5
0
votes
1 answer
Why does increasing the devicePixelRatio decrease the size of my QImage?
The devicePixelRatio is used to translate the device independent pixels into the actual physical pixels on the device. Therefore taking the example from the Qt Summit 2015 if I had a 300 x 200 QWidget with a devicePixelRatio of 2, it will render a…

J. Doe
- 92
- 5
0
votes
0 answers
Why is one CSS pixel not always equal to 1/96 inch?
Recently, I was reading about the different types of pixels. I came across device pixels, CSS pixels, and device-independent pixels. I found out that device-independent pixels or dips can't be used on the web with HTML or CSS. That's fine. But now,…

Abdulramon jemil
- 47
- 6
0
votes
0 answers
Android resolution independence for DRAWING on the canvas
I'm confused about device independent drawing on Android.
Or rather, I have a canvas and I'm just drawing lines, rectangles and ovals on it.
Is there a way of doing this in a device independent viewport so that it just fits whatever screen its…

interstar
- 26,048
- 36
- 112
- 180