Solved

eztwain scanned image size?

Posted on 2006-07-10
2
434 Views
Last Modified: 2008-01-09
am scanning a image to the clipboard and displaying it in a image control in vb6. The scanned image is really large, I do not know how to make image smaller to fit inside image box. The code I have to acquire image is:
Dim s%
TWAIN_SetHideUI (1)
s% = TWAIN_AcquireToClipboard(Me.hwnd, 0)
if s% = 1 Then
Me.image1.Picture = Clipboard.GetData
Me.image1.refresh
else
'do nothing
end if
I am using the eztwain classic dll
Thanks ahead of time.
0
Comment
Question by:ircpamanager
2 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
ID: 17075445
have you tried

Dim s%
TWAIN_SetHideUI (1)
s% = TWAIN_AcquireToClipboard(Me.hwnd, 0)
if s% = 1 Then

Image1.Stretch = True

Me.image1.Picture = Clipboard.GetData
Me.image1.refresh
else
'do nothing
end if


0
 
LVL 5

Author Comment

by:ircpamanager
ID: 17075911
yes, it still only scans a fixed portion of document.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question