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 change or set Resolution or dpi before scanning??

Forums › TWAIN Classic › how to change or set Resolution or dpi before scanning??

  • This topic has 2 replies, 3 voices, and was last updated 12 years, 4 months ago by gabe.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 3, 2008 at 11:33 am #22425 Reply
    nelluru
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    Hi all,
    I am working on a project which requires scanning of some applications. I am using a twain open source code which is in C# and I am using HP scanjet G3010 scanner.
    I want to set the scan properties to black & white and change the resolution e.g. 500×500.
    Fortunately I am able to set the capability to black & white before scanning( got the it from one of the threads). But i am not able to change the resolution of the image to my desired value. I think i have to set the resolution(x and y) like setting the capability to black & white. I tried a lot by changing the values and not able to succeed.
    what are the enum values for the xresolution and yresolution??
    How to set the xresolution and yresolution capabilities??

    November 3, 2008 at 12:29 pm #24704 Reply
    june5
    Participant
    • Topics - 0
    • Replies - 17
    • Total Posts - 17

    Have you checked what type you use for ICAP_XRESOLUTION?
    While type of ICAP_PIXELTYPE is TW_UINT16, ICAP_XRESOLUTION is TW_FIX32.

    November 3, 2008 at 3:38 pm #24705 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    set the Units first. 500×500 has little context to most devices, or worse it has an erratically incorrect context, unless you set the units first. I’m going to go out on a limb and guess that 500in is well beyond your device’s ability.

    see the ‘Capability Ordering’ document https://www.twain.org/docs/CapOrderForWeb.PDF for more on what capabilities to set in what order.

    .

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: how to change or set Resolution or dpi before scanning??
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

  • could not open the twain source. Make sure there is a valid source for your sca
  • Changing TWAIN driver defaults
  • Scanner starts transfer when console gets closed (CITRIX)
  • Kodak RFS 3600
  • Didn’t save enough file scan
  • 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.