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

ICAP_XRESOLUTION and ICAP_YRESOLUTION and memory problem

Forums › TWAIN Classic › ICAP_XRESOLUTION and ICAP_YRESOLUTION and memory problem

  • This topic has 14 replies, 2 voices, and was last updated 11 years, 5 months ago by sdavi.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • August 6, 2009 at 8:31 am #22518 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    Hi all twain experts,
    i’m encountering with a problem related to ICAP_XRESOLUTION (and Y)
    and memory allocation.
    If i inquiry about possible list of values of ICAP_XRESOLUTION, via MSG_GET, i receive follow values:
    100.000,150.000,200.000,300.000,400.000,600.000,1200.000,2400.000,4800.000,9600.000,19200.000

    I verify this values both with my application and TWAIN_32 Twhacker confirm me that it is correct.
    But if i open the tool of my Brother, it enable me to choice a resolution of 1200 dpi as a max value.
    In fact if i open my app and set to 19200 as resolution (x and y) i get an error message related to insufficient memory.
    Same behavior with TWAIN_32 Twhacker.
    How is possible that a scanner support a resolution and there is not enough memory in my pc? i have
    a 4gb ram computer home.

    Any ideas?

    August 6, 2009 at 3:45 pm #24975 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    like you I like the SupportedCaps capability and enjoy using Get to determine what the appropriate values are, seems kinda natural to use the capabilities as they are documented and as they are used in sample code.

    that said, if you see different values returned from a driver than are displayed on the driver’s Ui there is a good chance you are either doing something wrong, have a close to worthless driver on your hands or both.

    what are you using for units and how is the tranfer set? try switching to file mode for the transfer to check the memory issue. if you have not taken a look at Dosadi’s twirl & twister utilities with that datasource.

    .

    August 7, 2009 at 4:34 pm #24976 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    Hi Gabe
    Units are sets to the TWUN_INCHES value;
    What i said is that i got values that display the ui driver of my scanner,
    plus some other value (only higher values).
    So i perform an aexperiment.
    Via my application i set resolution (x and y) to 1200 dpi and this produce
    an image (i wrote a simple class DBI.cpp that get DBI handle returned from the scanner and save into the filesystem) about to 300 MB.
    So i think that if the ui driver dont display me higher values, is possible that it inquiry my ram and verify if i can set higher dpi, so it hide me higher values.
    That other values, not only i get with my app, but with twhacker too, so i’m sure that i’m correct when i inquiry my scanner for that capability.
    Do u think?

    August 10, 2009 at 6:03 am #24977 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    I think you have a device where the Ui and Api don’t match. In those cases I usually trust the Ui over the values reported to the api as it has seemed in the past that when in doubt trust the Ui over the Api. I also don’t think the device’s driver is doing any check on your available memory and hiding values, I’d bet that the Ui was tested better than their api and they ‘forgot’ to remove the higher values.
    Are you following the capability guide for capability ordering when you set the caps?

    .

    August 10, 2009 at 7:49 am #24978 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    I’ve checked just now that document.
    I’d read that ICAP_XRESOLUTION (and Y) are dependent from ICAP_BITDEPTH (and when i set ICAP_XRESOLUTION and Y my ICAP_BITDEPTH was 24), wich depends on ICAP_PIXELTYPE (and for my scanner was set to TWPT_RGB), but i send a MSG_SET only for ICAP_XRESOLUTION and ICAP_YRESOLUTION.

    Best regards

    August 10, 2009 at 7:52 am #24979 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    yup, thats pretty much all of it – if you’re already checking the units, bitdepth and pixeltype then you’re doing as much right as you can. you may benifit from testing development on a more stable driver – I use the Kodak i30 in simulation mode and highly recommend it

    .

    August 10, 2009 at 8:05 am #24980 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    Kodak i30? what is? and what is simulation mode? it sounds like interesting…
    Where can i download it??

    August 10, 2009 at 8:18 am #24981 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Kodak made a scanner, the i30 (well, they made a lot of scanners but I like the i30). At that time the drivers that Kodak used for their i-series contained an additional mode, simulation mode. If you search Google you can find the driver – typically with the words ‘Scanner Validation Tool’ in the name. Then if you search this forum for the word ‘simulation’ you should find a thread where I tell you how to enable it, if you can’t find either then post back and I’ll go get links again.

    .

    August 10, 2009 at 8:20 am #24982 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    here is the link for setting up simulation mode:
    http://www.twainforum.org/viewtopic.php?t=1822&highlight=simulation

    and here is the driver:
    http://graphics.kodak.com/docimaging/US/en/Products/Document_Scanners/Desktop/i30_Scanner/Support/Drivers_And_Downloads/i30_and_i40_Scanner_Driver/index.htm

    August 10, 2009 at 8:43 am #24983 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    Tank you very much Gabe. Now i will study it.
    Best regards

    August 10, 2009 at 8:48 am #24984 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    gabe, i installed it, but under %windir%twain_32kodak there is nothing.
    The kodak folder exists but it does not contain nothing….

    August 10, 2009 at 8:51 am #24985 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    have you rebooted once after the install? I seem to remember that some files were missing until reboot

    .

    August 10, 2009 at 8:52 am #24986 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    Ok, i will just now.

    August 10, 2009 at 8:58 am #24987 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    Hi gabe, i rebooted, but the folder C:WINDOWStwain_32kodakkds_i30_i40 is empty.
    No .ds file found nor another.
    What can i do?

    August 10, 2009 at 12:34 pm #24988 Reply
    sdavi
    Participant
    • Topics - 4
    • Replies - 34
    • Total Posts - 38

    Yeah, i’m now in simulation mode.
    I was to read exact instructions.
    Tank you Gabe
    Best regards

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
Reply To: ICAP_XRESOLUTION and ICAP_YRESOLUTION and memory problem
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.