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: ICAP_BRIGHTNESS setting is ignored (?)

Forums › TWAIN Classic › ICAP_BRIGHTNESS setting is ignored (?) › Reply To: ICAP_BRIGHTNESS setting is ignored (?)

January 20, 2010 at 9:59 pm #24466
jimwatters
Participant
  • Topics - 2
  • Replies - 72
  • Total Posts - 74

An application can not force the kind of container a DS will return for a MSG_GET. The code below will not ensure you will receive a Range. Always check the kind of container returned before processing it. The Container passed to the DS to fill should be empty.


TwCapability capbright = new TwCapability(TwCap.ICAP_BRIGHTNESS, TwOn.Range, TwType.Fix32, -1);
rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Get, capbright);

Many DS do not support constraining capabilities when the UI is displayed. If they do, MSG_GET will first need to return an Enumeration or Range.
MSG_GET to get possible values.
MSG_SET using the same container type but with only the limited values.

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

  • Girls of Desire: All babes in one place, crazy, art
  • 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.
  • 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