UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.awt.image.eztwain
Class EZTwainWrapper

java.lang.Object
  |
  +--edu.berkeley.guir.lib.awt.image.eztwain.EZTwainWrapper

public class EZTwainWrapper
extends Object

 Revisions:  - GUIRLib-v1.0-1.0.0, Jan 21 2000, FL
               Created class
             - GUIRLib-v1.4-1.0.0, Aug 31 2000, JH
               Touched for GUIRLib release
 

Since:
JDK 1.3
Version:
GUIRLib-v1.4-1.0.0, Aug 31 2000
Author:
Francis Li ( fli@cs.berkeley.edu)

Field Summary
static int TWAIN_ANYTYPE
           
static int TWAIN_BW
           
static int TWAIN_GRAY
           
static int TWAIN_PALETTE
           
static int TWAIN_PRESESSION
           
static int TWAIN_RGB
           
static int TWAIN_SM_LOADED
           
static int TWAIN_SM_OPEN
           
static int TWAIN_SOURCE_ENABLED
           
static int TWAIN_SOURCE_OPEN
           
static int TWAIN_TRANSFER_READY
           
static int TWAIN_TRANSFERRING
           
 
Constructor Summary
EZTwainWrapper()
          Creates new EZTwainWrapper
 
Method Summary
 int acquireNative(int hwnd, int pixTypes)
           
 int closeSource()
           
 int closeSourceManager(int hwnd)
           
 int dibDepth(int handle)
           
 int dibHeight(int handle)
           
 void dibReadRowRGB(int handle, int row, byte[] buf)
           
 int dibWidth(int handle)
           
 int disableSource()
           
 int enableSource(int hwnd)
           
 void freeNative(int handle)
           
 int getMultiTransfer()
           
 int getState()
           
static void main(String[] strArgs)
           
 void selectImageSource(int hwnd)
           
 void setMultiTransfer(int val)
           
 int unloadSourceManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TWAIN_BW

public static final int TWAIN_BW

TWAIN_GRAY

public static final int TWAIN_GRAY

TWAIN_RGB

public static final int TWAIN_RGB

TWAIN_PALETTE

public static final int TWAIN_PALETTE

TWAIN_ANYTYPE

public static final int TWAIN_ANYTYPE

TWAIN_PRESESSION

public static final int TWAIN_PRESESSION

TWAIN_SM_LOADED

public static final int TWAIN_SM_LOADED

TWAIN_SM_OPEN

public static final int TWAIN_SM_OPEN

TWAIN_SOURCE_OPEN

public static final int TWAIN_SOURCE_OPEN

TWAIN_SOURCE_ENABLED

public static final int TWAIN_SOURCE_ENABLED

TWAIN_TRANSFER_READY

public static final int TWAIN_TRANSFER_READY

TWAIN_TRANSFERRING

public static final int TWAIN_TRANSFERRING
Constructor Detail

EZTwainWrapper

public EZTwainWrapper()
Creates new EZTwainWrapper
Method Detail

selectImageSource

public void selectImageSource(int hwnd)

acquireNative

public int acquireNative(int hwnd,
                         int pixTypes)

freeNative

public void freeNative(int handle)

dibWidth

public int dibWidth(int handle)

dibHeight

public int dibHeight(int handle)

dibDepth

public int dibDepth(int handle)

dibReadRowRGB

public void dibReadRowRGB(int handle,
                          int row,
                          byte[] buf)

getState

public int getState()

setMultiTransfer

public void setMultiTransfer(int val)

getMultiTransfer

public int getMultiTransfer()

closeSourceManager

public int closeSourceManager(int hwnd)

unloadSourceManager

public int unloadSourceManager()

closeSource

public int closeSource()

disableSource

public int disableSource()

enableSource

public int enableSource(int hwnd)

main

public static void main(String[] strArgs)

Copyright Information