public static boolean getADFSupport(SaneScanner saneScanner) throws SaneIOException { checkInstalled(); manager.getDevice().checkBusy(); setScanner(saneScanner); final SaneDevice device = manager.getDevice(); return device.getADFSupport(); }
public static int[] getSupportedSizes(SaneScanner saneScanner) throws SaneIOException { checkInstalled(); manager.getDevice().checkBusy(); setScanner(saneScanner); final SaneDevice device = manager.getDevice(); return device.getSupportedSizes(); }
public static float[] getXResolutionList(SaneScanner saneScanner) throws SaneIOException { checkInstalled(); manager.getDevice().checkBusy(); setScanner(saneScanner); final SaneDevice device = manager.getDevice(); return device.getXResolutionList(); }
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(); }
public static void setCancel(SaneScanner sc, boolean c) throws SaneIOException { SaneDevice device = manager.getDevice(); if (device == null) { return; } checkInstalled(); setScanner(sc); device.setCancel(c); }