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

Setting parameter of Scanner

Forums › TWAIN Classic › Setting parameter of Scanner

  • This topic has 5 replies, 2 voices, and was last updated 13 years, 1 month ago by gabe.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • November 30, 2007 at 11:58 am #22252 Reply
    ap
    Participant
    • Topics - 5
    • Replies - 9
    • Total Posts - 14

    Hi friends,
    In my project i am using jtwain for scanning.But i got stuck due to some problem .
    Problem 1: In my project i want to set resolution of different pages to different level.
    Problem 2: In my project i also want to scan one page gray scale and another page in black an white.

    Solution for problem 1:
    As per advice given by admin of twain am ready to start my process of scanning from starting.
    But i am not getting from where i should set twain source again to new resolution. Can u please guide for this problem.

    Solution for problem 2 :
    I think if restart scanning process then we can achieve this also.

    Please reply as soon as possible.My project is stuck due to this.

    Thanks in advance.

    November 30, 2007 at 2:09 pm #24210 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    prop 1:
    you’re outta luck, unless the device supports CAP_EXTENDEDCAPS. meaning that once your start the acquire there is not renegotiation of caps unless you and the source agree that it is ok (and use CAP_EXTENDEDCAPS fpr that) and so far

    prop2:
    yeah, taking each page as a seperate job solves both of your problems.

    December 1, 2007 at 6:00 am #24211 Reply
    ap
    Participant
    • Topics - 5
    • Replies - 9
    • Total Posts - 14

    Hi gabe,

    Thanks for reply.
    I am developing project in java.As u mention in previous post can u please give me detail idea how to implement it.How can i implement job control can it be using CAP_JOBCONTROL constant or any other.
    Now i am using kodak i40 scanner for scanning.

    It’s very urgent.
    Thanks in advance

    December 1, 2007 at 6:05 am #24212 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    sorry, I don’t take advantage of those features (jobControl or extendedCaps) in twain. you’ll have to read the spec, if I remember correctly there was an artice on ExtentedCaps toward to end of the spec. On the upside if you’re only using kodak scanners you may find that dualstreaming solves your BW & Color at the same time issue. For information on dual streaming look on the CD that comes with you kodak scanner and search the forum.

    .

    December 1, 2007 at 6:18 am #24213 Reply
    ap
    Participant
    • Topics - 5
    • Replies - 9
    • Total Posts - 14

    Hi gabe,
    Thanks for reply,
    In my scanning process administrator first set parameter for scanner.Then these parameter we have to set for scanner while scanning.
    I am also struggling while setting resolution for image.
    In my prescanning i will specify which page should have this resolution and also which page should be B&W and which page should gray ,and rgb. I have to set this through scanner programming For this i am using jtwain.
    Please give me some more idea.

    It’s very important.

    December 1, 2007 at 6:23 am #24214 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    @ap wrote:

    In my scanning process administrator first set parameter for scanner.

    what parameter?

    Then these parameter we have to set for scanner while scanning.

    I am also struggling while setting resolution for image.

    what kind of problem?

    In my prescanning i will specify which page should have this resolution and also which page should be B&W and which page should gray ,and rgb.

    flatbed or with a feeder – are you manually placing all of the pages on the flatbed?

    I have to set this through scanner programming For this i am using jtwain.

    I have zero experience with jtwain, I usually just call the c functions directory or thru a custom wrapper.

    sounds like you’ll want to build a job class (not the twain jobcontrol) can build a collection of those in your prescanning step – then in the execution stage execute each of the jobs.

    .

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Setting parameter of Scanner
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

  • 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

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.