Solved

eztwain scanned image size?

Posted on 2006-07-10
2
425 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
Comment Utility
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
Comment Utility
yes, it still only scans a fixed portion of document.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now