MKI_WindowGetPixelPerMM (Display) New in Version 2019.0

www.CAD6.com

C++ Syntax

double

MKI_WindowGetPixelPerMM(

 __int32 f_nWindowNum );

 

Retrieves the current display scaling of the given window.

 

Parameters

WindowNum

[__int32] Zero-based index of the window whose view shall be returned. The windows are numbered in reading direction, i.e. left to right and top to bottom. Valid range: 0 <= Value < MKI_WINDOW_MAX (standard windows) or Value = MKI_WINDOW_VIEW (view window).

 

Return Value

Returns the conversion factor from pixels to mm. This value is only approximate since it does not take into account non-proportional pixel-to-mm ratios.

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH