Displaying 1 result from an estimated 1 matches for "leggieri".
Did you mean:
leggeri
2009 Mar 09
1
Dialog base units implementation question
...et best results converting values to floating points and then rounding the result:
pixels_x = (int)(((double)dlu_x * (double)xBaseUnit / 4.0) + 0.5);
pixels_y = (int)(((double)dlu_y * (double)yBaseUnit / 8.0) + 0.5);
If anyone can confirm (or negate) this please inform me.
Best regards,
Mauro H. Leggieri