On Sat, Jul 12, 2008 at 12:38 AM, Joe Yoder <[EMAIL PROTECTED]> wrote:
> I have the EZtwain Classic package from dosadi installed and scanning to 
> memory and then writing from memory to file.  I can control the resolution 
> and the pixel type (BW/GrayScale/Color) of the scan but can't control the 
> brightness or contrast settings from my program.  The scan happens as 
> requested without an error but the image does not change with the brightness 
> and contrast values set by my program.

Years ago I worked on a VB6 app that had similar problems.  This
wasn't using EZTwain but VB code that accessed Twain_32.dll directly
(BTW this isn't possible with VFP as it requires modifying the core
event handler).

I've just found the source.  Looks like I wrote to the scanners .INI
file before scanning.  This was for a Cannon scanner but it might be
worth checking if you can do something similar for the HP:

'
' SetDitherTextEnhanced() - set the dither setting to 'Text Enhanced'
'
Public Sub SetDitherTextEnhanced()
    Dim ininame As String

    ininame = Environ("WinDir") & "\SETSCAN.INI"
    If Dir(ininame, vbNormal) <> "" Then
        ' File exists
        Call SetPrivateProfileString(scannerid, "Dither", "Text
Enhanced", ininame)
    End If
End Sub

This just updates SETSCAN.INI in the Windows folder.

-- 
Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to