Module NewOCR

Class 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 point
      static int pointToPixel​(int point)
      Converts the given point to a pixel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConversionUtils

        public ConversionUtils()
    • 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