[Lazarus] New high DPI features in 1.7
Erwin van den Bosch
erwin at deseine.nl
Fri Dec 9 13:15:43 CET 2016
Op 9-12-2016 om 12:56 schreef Graeme Geldenhuys via Lazarus:
> How to get pixel 27?
> Use a 2D graphics framework like fpGUI does with AggPas, which allows
> for sub-pixel rendering. ie: renders pixels smaller that 1px by using
> anti-aliasing, alpha blending and LCD sub-pixel filtering.
>
> Regards,
> Graeme
That might be the solution! (but you loose some contrast)
Another problem with scaling is the thickness of lines. Example: you
are (or a control) drawing lines on a form with a thickness of 1 pixel.
If you scale the form from 96 to 192 dpi what to do with the thickness
of lines? It should be 2 pixels on a 192 dpi screen to get the same
thickness.
Erwin
More information about the Lazarus
mailing list