Home › Forums › TWAIN Classic › Twain – Setting Resolution & Multi Feeder
- This topic has 1 reply, 2 voices, and was last updated 16 years, 5 months ago by gabe.
- AuthorPosts
Hey All,
I’m working on a c# application that uses twain to acquire images from my scanner.
Could someone tell me how to change the resolution and enable multifeeder from my application please?
I’ve been browsing the forum and trying methods to do so myself, but had no success as yet.
As regards changing the resolution, from what I could see the XResolution and YResolution are in the TwImageInfo enum and are set from:
TwImageInfo iinf = new TwImageInfo();
rc = DSiinf( appid, srcds, TwDG.Image, TwDAT.ImageInfo, TwMSG.Get, iinf );
if( rc != TwRC.Success )
{
CloseSrc();
return pics;
}However, if i try to set the iinf.XResolution & YResolution myself, these are just overwritten to the scanner’s values once the dll is called :S
Any help please?
Thanks in advance
no, twImageInfo is used to retrieve information not set it – this is consistant with the rest of the spec when you look at the msg parameter – msg_get used to retrieve stuff, msg_set to to,.. well set stuff.
the triplet you want to look over is DG_CONTROL / DAT_CAPABILITY / MSG_SET where you’ll pass in a tw_capabilty structure
should be around page 157 of the 1.9 spec
.- AuthorPosts