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

Set ICAP_Contrast by coding with hide user interface dialog

Forums › TWAIN Classic › Set ICAP_Contrast by coding with hide user interface dialog

  • This topic has 4 replies, 2 voices, and was last updated 7 years ago by xostar1.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 21, 2014 at 10:11 am #22908 Reply
    xostar1
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    Hi, I’m programming on java to control ICAP_CONTRAST without UI dialog. Once I hide the UI setShowUserInterface(true). I cannot re-scan again and error occurred as below

    ==========================================
    Failed during call to twain source.
    cc=Capability not supported by source
    rc=1
    ==========================================

    January 21, 2014 at 4:38 pm #26055 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hi xostar1 – can you tell if that error is happening specifically when the code tries to set ICAP_CONTRAST?

    If so, maybe your scanner doesn’t support ICAP_CONTRAST – that would be odd, but after all it isn’t a required capability.

    What scanner are you testing with?

    January 22, 2014 at 5:30 am #26056 Reply
    xostar1
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    Hi Spike,

    I’m sure I can set apply ICAP_CONTRAST on first scan. Once I trigger the scanner scan again and its prompt error. But I found that I only able to control the Contrast by using UI (setShowUserInterface(true)).

    I have tried 3 different model scanner (Kodak i65, i1420, i2600).

    January 22, 2014 at 8:26 pm #26057 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hi xostar1 – So: the error happens every time, on the 2nd scan, with three different Kodak scanners?
    Maybe the problem is not with ICAP_CONTRAST, but something is in the wrong state after the 1st scan.

    It is very odd though, because that is such a specific error report. It is not the error I would expect if the driver was not open, or was in state 5,6 or 7.

    Do you close the scanner after the first scan?
    Each time you set ICAP_CONTRAST, do you set ICAP_PIXELTYPE first?

    What code or library are you using to control the scanner?

    January 23, 2014 at 9:52 am #26058 Reply
    xostar1
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    Hi Spike,

    I have attached the sample file. You may try on it. Press “Acquire” first time – Console show OK and scanned image ok. Second time – Adjust Contrast Value by Scroll. Scanned image seem ok, but console error show as below. But not sure whether I can ignore the console.
    =====================================
    9Pixel Type: Failed during call to twain source.
    cc=Capability not supported by source
    rc=1
    =====================================

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Set ICAP_Contrast by coding with hide user interface dialog
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.