Index

CDTDisplay

GetScale

DT_FLOAT GetScale() const

This function returns the displays's scale. This is the natural scale factor associated with the display. The displays's reflects the scale factor needed to convert from the default logical coordinate space (measured using points) into the device coordinate space of this display (measured using pixels). For example, for Retina displays, this scale might be 3.0 or 2.0 (meaning that one point can represented by nine or four pixels, respectively). For standard-resolution displays, the scale factor is 1.0 and one point equals one pixel.

Return Value

The function returns the displays's scale as described above.

 

Index