Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Scanner Settings

Last post 26 Mar 2008, 8:28 AM by Glenn. 3 replies.
Sort Posts: Previous Next
  •  25 Mar 2008, 5:29 AM 13544

    Scanner Settings

    Hi,

    Just a few questions, I am currently evaluating DotTwain 6.0, looking at setting verious setting on the Panasonic KVS 1025C. 

     1. Is it possible to check in code if the scannner is capable of aquiring a custom size and set the paper size?

    I have looked at How to: Acquire a Select Region of the Device, but the code sample there doesn't work Me.device.QueryCapability(DeviceCapability.FrameSize,True), 'FrameSize' is not a member of 'Atalasoft.Twain.DeviceCapability'.  Is there another way or am I missing something?

    2. Is it possible to set the Chroma(Front and Back), Brightness(Front and Back), Contrast(Front and Back), Image Emphasis(Front and Back), Resolution, Paper Source and Image Type.

    We have tried this with version 1.0 and none of the setting seem to have taken effect.

    Thanks for you time.

    Jon

  •  25 Mar 2008, 2:26 PM 13547 in reply to 13544

    Re: Scanner Settings

    1. For the FrameSize property use DeviceCapability.ICAP_SUPPORTEDSIZES.  In DotTwain 2.0 we changed the DeviceCapability enum values to match the names in the TWAIN specification.

    2. You can set any driver property if the driver lets you.  Just make sure you set it to a value supported by the driver.  There are several methods named GetSupported* in the Device object that will return values supported by the driver.

    Make sure you set the properties just before calling Acquire.  If you close the device after setting the properties the driver might revert the settings.


    Glenn Chittenden Jr.
    Atalasoft Development Team
  •  26 Mar 2008, 6:42 AM 13550 in reply to 13547

    Re: Scanner Settings

    Glenn, thanks for the response.  Still one question, is it possible to set a custom paper size through dottwain?

     

  •  26 Mar 2008, 8:28 AM 13553 in reply to 13550

    Re: Scanner Settings

    Yes, if the driver supports it.  Try setting the Frame property to the rectangle area you want to scan.  If that doesn't work try setting the ImageLayout property, specifying the frame in the TwainImageLayout object.

    Keep in mind that most drivers require specific settings.  Some will automatically modify the rectangle to fit their settings while others will ignore your request.  You can use QueryCapability on ICAP_FRAMES to see if setting the Frame property is supported.


    Glenn Chittenden Jr.
    Atalasoft Development Team
View as RSS news feed in XML