예제 #1
0
파일: jsane.java 프로젝트: cmorenogg/alsigm
 public static boolean getADFSupport(SaneScanner saneScanner) throws SaneIOException {
   checkInstalled();
   manager.getDevice().checkBusy();
   setScanner(saneScanner);
   final SaneDevice device = manager.getDevice();
   return device.getADFSupport();
 }
예제 #2
0
파일: jsane.java 프로젝트: cmorenogg/alsigm
 public static int[] getSupportedSizes(SaneScanner saneScanner) throws SaneIOException {
   checkInstalled();
   manager.getDevice().checkBusy();
   setScanner(saneScanner);
   final SaneDevice device = manager.getDevice();
   return device.getSupportedSizes();
 }
예제 #3
0
파일: jsane.java 프로젝트: cmorenogg/alsigm
 public static float[] getXResolutionList(SaneScanner saneScanner) throws SaneIOException {
   checkInstalled();
   manager.getDevice().checkBusy();
   setScanner(saneScanner);
   final SaneDevice device = manager.getDevice();
   return device.getXResolutionList();
 }
예제 #4
0
파일: jsane.java 프로젝트: cmorenogg/alsigm
 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();
 }
예제 #5
0
파일: jsane.java 프로젝트: cmorenogg/alsigm
 public static void setCancel(SaneScanner sc, boolean c) throws SaneIOException {
   SaneDevice device = manager.getDevice();
   if (device == null) {
     return;
   }
   checkInstalled();
   setScanner(sc);
   device.setCancel(c);
 }