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

Reply To: TW_IMAGEINFO

Forums › TWAIN Classic › TW_IMAGEINFO › Reply To: TW_IMAGEINFO

May 4, 2008 at 3:35 pm #24479
alvise
Participant
  • Topics - 10
  • Replies - 23
  • Total Posts - 33

I don’t want the user interface to be displayed, and I want to set the resolution and the scanning area programatically.

I have read more accurately paragraph “Changing the Image Attributes” (TWAIN 1.9a spec, page 4-88) and you’re right: TW_IMAGEINFO can’t be used to set scanning parameters using the DG_IMAGE / DAT_IMAGELAYOUT / MSG_SET triplet.

According to that paragraph I should use TW_IMAGELAYOUT, but the contents of this latter structure can’t be used to set the parameters that I need. TW_IMAGEINFO, on the contrary, is exactly the structure containing the parameters that I want to set. And it works: every parameter appears to be properly set. The only problem is that I get the “TWCC_BADVALUE” condition code. That’s all.

I just want to perform one simple task: scan a B&W letter size sheet at 200 dpi and get the uncompressed data. But it appears to be a pretty difficult task using TWAIN.

Regards from Alvise.

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