[device dots per inch] for monitor
Ladis and Genttlemen, how to get [device dots per inch] for device, which is called monitor. (I am stupid, I need example).
The place to exchange ideas and experiences on Delphi programming
http://forum.delphiarea.com/
function GetScreenDPI: TPoint;
var
DC: HDC;
begin
DC := GetDC(0);
try
Result.X := GetDeviceCaps(DC, LOGPIXELSX);
Result.Y := GetDeviceCaps(DC, LOGPIXELSY);
finally
ReleaseDC(0, DC);
end;
end;