Fixed conversion factor Centimeters to Pixels and vice versa.
This commit is contained in:
parent
516c13e032
commit
c524394f5f
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue