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

Normalizing ContrastBrightness settings

Forums › TWAIN Classic › Normalizing ContrastBrightness settings

  • This topic has 0 replies, 1 voice, and was last updated 14 years, 8 months ago by KGudgeirsson.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • May 18, 2006 at 9:35 pm #21947 Reply
    KGudgeirsson
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    I am trying to give the user a normailized range (1-255) to set the brightnesscontrast of any given scanner. As alot of you are probably aware, scanners come with all different types of ranges in brightness and contrast capababilities. The goal for me is to have the user choose a normailized value and for my source to figure out based on the normailized value what to set the current scanner source to.

    For example:

    Scanner: Fujitsu fi-4110CU

    Range Values returned:

    Min Value returned by twain: -127

    Max value returned by Twain: +127

    Step Size returned by Twain: 1

    Normalized Range given to user: 1-255

    If a user chooses 150 based on the normaized range, my code needs to return that value but in the range of the scanner settings for ContrastBrightness. (It would return -2)

    It gets a little bit more comlicated than the previous example when you have a wider range of values and step sizes greater than 1.

    I know that the source for twain (TWAIN Sample Application Project located in the Twain Toolkit) does this normalization already. My goal is to use this functionality that Twain has without have to aquire ALL the settings for a particular scanner.

    If someone has any ideas of how to approach this problem OR knows where in the source code Twain normalizes these ranges values it would be of great help!

  • Author
    Posts
Viewing 1 post (of 1 total)
Reply To: Normalizing ContrastBrightness settings
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.