TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Reply To: How can we stop scanner?

Forums › TWAIN Classic › How can we stop scanner? › Reply To: How can we stop scanner?

December 4, 2008 at 2:16 pm #24724
ap
Participant
  • Topics - 5
  • Replies - 9
  • Total Posts - 14

Hi Sir,
Thanks for your reply. I am developing my application since 2-3 months, before stating it I already gone through specification. I am tracking the state change event of scanner.
Here I have written sample code .
public void update(ScannerIOMetadata.Type type, ScannerIOMetadata metadata){

TwainSource source = ((TwainIOMetadata) metadata).getSource();

if(type.equals(ScannerIOMetadata.ACQUIRED)){
BufferedImage image=metadata.getImage();
//here I am saving image………….
}else if(type.equals(ScannerIOMetadata.NEGOTIATE)){
//here I am setting properties for scanner…………..
}else if(type.equals(ScannerIOMetadata.STATECHANGE)){
//here I am tracking statechange………….
}else if(type.equals(ScannerIOMetadata.EXCEPTION)){
}
}
Also please tell me, I want to scan one page in duplex mode with color and black and white format when it gets scanned.
How can we set properties for that? I am using Kodak scanner i40/i1420 for scanning.
Please give me some suggestion it’s very urgent for me.

Thanks in advance.

Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in