- java.lang.Object
-
- com.uddernetworks.newocr.utils.ConversionUtils
-
public class ConversionUtils extends java.lang.Object
Provides simple conversions of units used by the OCR and programs using the library.- Since:
- April 25, 2019
-
-
Constructor Summary
Constructors Constructor Description ConversionUtils()
-
Method Summary
Modifier and Type Method Description static int
pixelToPoint(int pixel)
Converts the given pixel to a pointstatic int
pointToPixel(int point)
Converts the given point to a pixel
-
-
-
Method Detail
-
pixelToPoint
public static int pixelToPoint(int pixel)
Converts the given pixel to a point- Parameters:
pixel
- the pixel to convert- Returns:
- The point value of the pixel
-
pointToPixel
public static int pointToPixel(int point)
Converts the given point to a pixel- Parameters:
point
- The point to convert- Returns:
- The pixel value of the point
-
-