Class Conversion
- java.lang.Object
-
- com.stepover.opensignatureapi.helpers.Conversion
-
public class Conversion extends java.lang.Objecta helper class to calculate dot dimensions
-
-
Constructor Summary
Constructors Constructor Description Conversion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RectangleconvertRectangle(Rectangle rectangle, double dpi)static intdotsToPixels(double dots)static RectangleinflateRectangle(Rectangle rectangle, int width, int height, double dpi)static intmmToDots(double resolution, double mm)static intmmToPixels(double resolution, double mm)static intpixelToDots(double pixels)static intpixelToDots(double pixels, int dpi)static RectanglezoomRectangleToWidth(Rectangle rectangle, int width)
-
-
-
Method Detail
-
mmToDots
public static int mmToDots(double resolution, double mm)
-
mmToPixels
public static int mmToPixels(double resolution, double mm)
-
dotsToPixels
public static int dotsToPixels(double dots)
-
pixelToDots
public static int pixelToDots(double pixels)
-
pixelToDots
public static int pixelToDots(double pixels, int dpi)
-
-