Home › Forums › TWAIN Classic › How can we stop scanner? › Reply To: How can we stop scanner?
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.