com.twainconnect.io
Interface ImageLoader
- All Known Implementing Classes:
- BmpMemoryLoader, JavaIoImageLoaderImp, TwainConnectImageLoaderImp
public interface ImageLoader
In order to provide for a JAI, javax.io and custom
implementations for loading images. This way an SPI
design can be included in the design allowing for the jar to
simultaneously support JAI, javax.io and TwainConnect implementations
by just changing a value in a properties file
- Since:
- 3.0
- Version:
- 3.0
- Author:
- jimageconnect.com
|
Method Summary |
java.awt.image.BufferedImage |
load(java.lang.Object file)
Regardless of the underlying imaging engine, load an image and return
it as a BufferedImage |
load
java.awt.image.BufferedImage load(java.lang.Object file)
throws TwainConnectException
- Regardless of the underlying imaging engine, load an image and return
it as a BufferedImage
- Parameters:
file - where the TWAIN image file is located
- Returns:
- The acquired image found on the file system is now loaded into
Java as a BufferedImage. The image from TWAIN is a Bitmap on
the WIN32 platform and thus needs an external transformation to make
TWAIN and Java meet.
- Throws:
TwainConnectException