Java Scan Java Scanner: FAQs: JTwain v8.2 - a Java Twain library SDK for scanner, cameras image acquisition.

JTwain FAQs
  1. Is there any difference between the trial version and full version?

    There is no difference. However, according to the evaluation license agreement, developers are not allowed to distribute software using a trial version of JTwain.
  2. Will JTwain support Solaris, Linux, Mac?

    JTwain supports all kinds of Windows platforms. Linux release is planed. We measure the priority of porting JTwain to an OS by its market share.
  3. High performance: My scanner supports ADF, is JTwain capable of ADF?

    Yes. Please read Developers' Guide, Section 'Automatic Document Feeding'
  4. If I develop an application using JTwain, how can I package and distribute it?

    With JTwain, application packaging and distribution are made very easy. Developers only have to include two files: JTwain.jar and AspriseJTwain.dll. The first one has to be put in the CLASSPATH, and second one could be put into PATH or anywhere. Read Developers' Guide for more details.
  5. What version of Java is required for JTwain?

    Java version 1.2 or above.
  6. Can I use JTwain in my Applet/Application/Web Application?

    Yes. JTwain can be used in Java applets, java applications, web applications, etc. Our support team assists licensees to deploy JTwain if necessary.
  7. What's the different between acquiring images from a digital camera and a scanner?

    From the developer's point view, there is no difference. The same set of APIs can be called to perform image acquisition from digital cameras and scanners. Unified API by JTwain.
  8. The demo applet is exactly what i want, so what license should i purchase?

    You can choose for the following two bundles: (a) JTwain Single Developer License + JTwain Web Applet License [Including binary and source code for the applet so that you can customize it]; or (b) The Site License, which includes everything - the binary and source code for the JTwain library and the web applet.
  9. Is it possible to save scanned images into TIFF files?

    Yes. You can use our Asprise Java TIFF Library to save images into TIFF files.
  10. How can i convert an acquired image into a BufferedImage?

    Sample code: [Java 1.4+]
    import java.awt.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    
    import com.asprise.util.jtwain.*; 
    
    ...
    
    try {
    
        Source source = SourceManager.instance().getDefaultSource(); // Acquire image from default source
        source.open();
    
        Image image = source.acquireImage(); // Acquire the image
    
        // Loads the image completely ...
        // Click here to find how to load images completely with MediaTracker.
        // ...
    
        int imageWidth = image.getWidth(this);
        int imageHeight = image.getHeight(this);
    
        BufferedImage bufferedImage = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);
    
        Graphics2D g2 = bufferedImage.createGraphics();
        g2.drawImage(image, 0, 0, this);
    
        // Now, you can use the bufferedImage object ...
    
    }catch(Exception e) {
        e.printStackTrace();
    }finally{
        SourceManager.closeSourceManager();
    } 
    




ALL RIGHTS RESERVED BY LAB Asprise! © 1998 - 2008. Terms of Use | Privacy Policy