Drawing Coordinates and Backing Pixel Dimensions

An interface can use logical drawing units while its stored image or screen device uses another number of pixels per displayed unit.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a scale factor
  2. Test visible and stored sizes

Trace a scale factor

If one logical unit corresponds to two backing pixels, a logical width of 100 uses 200 backing pixels under that layout. Physical pixel scale explains why the ratio matters.

Test visible and stored sizes

An exported image's pixel size can differ from the size at which it is displayed. Record both rather than using an unlabeled size. See values and units.[1]

References

  1. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩