Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

eztwain scanned image size?

Posted on 2006-07-10
2
Medium Priority
?
448 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 1500 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

718 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