Fixed conversion factor Centimeters to Pixels and vice versa.

This commit is contained in:
Bas-Jan 't Jong 2014-05-10 23:52:10 +02:00
parent 516c13e032
commit c524394f5f
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ class Drawing
*/
public static function pixelsToCentimeters($value = 0)
{
return $value * 0.028;
return $value * 0.026458333;
}
/**
@ -120,7 +120,7 @@ class Drawing
public static function centimetersToPixels($value = 0)
{
if ($value != 0) {
return $value / 0.028;
return $value / 0.026458333;
} else {
return 0;
}