public abstract class TwainUtilities extends Object
| Constructor and Description |
|---|
TwainUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static Rectangle2D.Double |
convertInchesToPixels(double resX,
double resY,
Rectangle2D.Double r) |
static Rectangle2D.Double |
convertMMtoInches(Rectangle2D.Double r) |
static Rectangle2D.Double |
convertMMToPixels(double resX,
double resY,
Rectangle2D.Double r) |
static Rectangle2D.Double |
convertPixelsToInches(double resX,
double resY,
Rectangle2D.Double r) |
static Rectangle2D.Double |
convertPixelsToMM(double resX,
double resY,
Rectangle2D.Double r) |
static boolean |
isTwainEnabled() |
static BufferedImage |
toBufferedImage(Image im) |
static BufferedImage |
toBufferedImage(Image im,
int type) |
public static boolean isTwainEnabled()
public static Rectangle2D.Double convertPixelsToMM(double resX, double resY, Rectangle2D.Double r)
public static Rectangle2D.Double convertMMToPixels(double resX, double resY, Rectangle2D.Double r)
public static Rectangle2D.Double convertPixelsToInches(double resX, double resY, Rectangle2D.Double r)
public static Rectangle2D.Double convertMMtoInches(Rectangle2D.Double r)
public static Rectangle2D.Double convertInchesToPixels(double resX, double resY, Rectangle2D.Double r)
public static BufferedImage toBufferedImage(Image im, int type)
public static BufferedImage toBufferedImage(Image im)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.