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

Windows 7 64-bit does not recognize the pixel type setting

Forums › TWAIN Classic › Windows 7 64-bit does not recognize the pixel type setting

  • This topic has 4 replies, 2 voices, and was last updated 7 years, 6 months ago by tctwain.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 25, 2013 at 4:02 pm #22858 Reply
    tctwain
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    We are using the twain dll with c-sharp for scanning.
    We are using canon scanners – 2050, 2080, DR-c130 models.

    The application works fine on all these models. However while
    scanning in DR-c130 on a Windows 7 64-bit machine it does not
    seem to recognize the pixel-type setting to black-and-white.

    The documents are always scanned in as color resulting in large documents.

    I am including the code we are using for your review.
    The twProtocol says major and minor version as 1.9.

    Appreciate any help on this.

    Thanks in advance,
    Raj
    ~~~~~~~~~~~~~~~~~


    ...
    TwCapability capPT = new TwCapability(TwCap.IPixelType, 0, TwType.UInt16);
    //(TwCap.IPixelType = 0x0100
    //(TwType.UInt16 = 0x0004

    rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, capPT);
    if (rc != TwRC.Success)
    {
    Console.WriteLine("failed to set pixel type");
    CloseSrc();
    return TwAcquire.Failure;
    }
    ...
    ...
    [DllImport("twain_32.dll", EntryPoint = "#1")]
    private static extern TwRC DScap([In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwCapability capa);
    June 27, 2013 at 5:36 am #25921 Reply
    Catherine Sea
    Participant
    • Topics - 0
    • Replies - 59
    • Total Posts - 59

    Did you try showing the user interface of the device and scan B/W images there?

    Or you may also try your scanner with Twack and see if you can set the pixel type successfully.

    If the same issue happens with twack, it should be the driver issue. Otherwise, you may double check with the code and see if you set the pixel type successfully.

    Thanks,

    Catherine Sea
    http://www.dynamsoft.com

    July 5, 2013 at 9:04 pm #25922 Reply
    tctwain
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    Catherine,
    Thanks for the reply. I will turn the show user interface and see if I can change the setting
    and make it scan in black and white on windows-64-C130 combination. However, the goal is
    to be able to scan without any user interface and programatically set the scan options.

    Also the same exact code works on windows-32bit-c130 combination and all other cannon scanner
    models (2050, 2080 etc.) I am thinking the pixel type hexadecimal value is different or
    the argument to that param is of different data type on 64-bit windows environment?

    anyone else faced similar issue?

    – Raj

    July 8, 2013 at 5:33 am #25923 Reply
    Catherine Sea
    Participant
    • Topics - 0
    • Replies - 59
    • Total Posts - 59

    Hi Raj,

    I think it might be related with the driver.

    Are you using the 64-bit TWAIN driver on the Win 7 64 bit machine? Have you tested with Twacker x64 and see how it works?

    Thanks,

    Catherine Sea
    http://www.dynamsoft.com

    July 9, 2013 at 8:27 pm #25924 Reply
    tctwain
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    will give that a try and let you know.

    thanks,
    Raj

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Windows 7 64-bit does not recognize the pixel type setting
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.