The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Java Tech: Acquire Images with TWAIN and SANE, Part 2
Subject:  Output as DIB
Date:  2005-06-29 17:31:56
From:  javajeff
Response to: Output as DIB


Hi Jason,

I'm sorry you are having trouble with the image conversion. I'd be happy to help you overcome that problem by creating a custom version of JTwain, with an alternative acquisition method that lets you specify a filename. When you invoke that method, the image would be stored in the file identified by the filename. You could then use Java's I/O streams capability to load the image and interpret the content as you see fit -- all from within Java.

Please contact me at jeff@gatewest.net and then I can get started on the custom JTwain.

I would like to post the code in this talkback but the talkback software doesn't properly format code. However, I'd be happy to email the code to anyone who contacts me at the above email address.

All the best.

Jeff

 Feed java.net RSS Feeds