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

how to set the resolution in code?

Forums › TWAIN Classic › how to set the resolution in code?

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 1 month ago by gabe.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 13, 2007 at 7:22 am #22258 Reply
    vissu259
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    hai..
    iam currently developing an image scanner application using twain.
    iam following the net master’s code.
    i want to change the resolution in my code.
    how to change it?
    please help me.
    its urgent.
    thank u.

    December 18, 2007 at 3:01 pm #24222 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    that’s a tricky question if you’re really set on using netmaster’s code, but in opentwain (which is based on his codeproject interop sample) it would look like this:


    public bool SetXResolution(double value)
    {

    Enumerations.Capability capID = Enumerations.Capability.Icap_XResolution;

    DataStructures.twOneValue twOneVal = new DataStructures.twOneValue();
    twOneVal.ItemType = DataStructures.twCapability.CapType(capID);
    twOneVal.Item = value;

    DataStructures.twCapability cap = new DataStructures.twCapability(capID, twOneVal);

    bool retBool = OperationTriplets.Control.Capability.Set(cap);

    return retBool;

    }
  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: how to set the resolution in code?
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

  • 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

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.