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

Twain – Setting Resolution & Multi Feeder

Forums › TWAIN Classic › Twain – Setting Resolution & Multi Feeder

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 5 months ago by gabe.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 31, 2007 at 4:05 pm #22237 Reply
    dschembri
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    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

    November 1, 2007 at 9:25 pm #24164 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    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
    .

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Twain – Setting Resolution & Multi Feeder
Your information:




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

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.