Exemplo n.º 1
0
 public static boolean getADFSupport(SaneScanner saneScanner) throws SaneIOException {
   checkInstalled();
   manager.getDevice().checkBusy();
   setScanner(saneScanner);
   final SaneDevice device = manager.getDevice();
   return device.getADFSupport();
 }
Exemplo n.º 2
0
 public static int[] getSupportedSizes(SaneScanner saneScanner) throws SaneIOException {
   checkInstalled();
   manager.getDevice().checkBusy();
   setScanner(saneScanner);
   final SaneDevice device = manager.getDevice();
   return device.getSupportedSizes();
 }
Exemplo n.º 3
0
 public static float[] getXResolutionList(SaneScanner saneScanner) throws SaneIOException {
   checkInstalled();
   manager.getDevice().checkBusy();
   setScanner(saneScanner);
   final SaneDevice device = manager.getDevice();
   return device.getXResolutionList();
 }
Exemplo n.º 4
0
 public static ArrayList<BufferedImage> acquire(SaneScanner sc) throws SaneIOException {
   checkInstalled();
   manager.getDevice().checkBusy();
   setScanner(sc);
   final SaneDevice device = manager.getDevice();
   // new Thread(){public void run(){device.acquire();}}.start();
   return device.acquire();
 }
Exemplo n.º 5
0
 public static void setCancel(SaneScanner sc, boolean c) throws SaneIOException {
   SaneDevice device = manager.getDevice();
   if (device == null) {
     return;
   }
   checkInstalled();
   setScanner(sc);
   device.setCancel(c);
 }
Exemplo n.º 6
0
 public static void select(SaneScanner sc, String name) throws SaneIOException {
   checkInstalled();
   manager.getDevice().checkBusy();
   setScanner(sc);
   manager.selectDevice(name);
 }