ciao a tutti qualcuno sa dirmi come faccio a aquisire immagini da scanner con il .net o dirmi dove posso trovare una documentazione al riguardo? ciao francesco
ciao a tutti qualcuno sa dirmi come faccio a aquisire immagini da scanner con il .net o dirmi dove posso trovare una documentazione al riguardo? ciao francesco
Se usi Xp c'è una dll apposita chiamta wia.dll (o qualcosa del genere) però ha un sacco di problemi soprattutto nel riconoscimento dei vari scanner, personalmente utilizzo la eztw32.dll perfetta con tutti i tipi di immagini e soprattutto freeware, esiste anche una versione pro a pagamento, utile con vb6 ma non serve a molto con vb net perchè riesci a fare la stesse cose. Google ti fornirà un sacco ddi riferimenti.Originariamente inviato da binos1979
ciao a tutti qualcuno sa dirmi come faccio a aquisire immagini da scanner con il .net o dirmi dove posso trovare una documentazione al riguardo? ciao francesco
![]()
Originariamente inviato da binos1979
cosa dovrei ricercare su google di preciso?
eztw32.dll
ho trovato la dll ma nn so usarla! avete un esempio già fatto così me lo studio e poi lo adatto a quello che mi serve?? ciao
Topic Interessante....
Mi ingegno e vi faccio sapere novità,
spero facciate altrettanto
*** Rachele TI AMO DA MORIRE!!! ***
ho scoperto una cosa QUI
che EZTwain se deve pagaaaaaa
*** Rachele TI AMO DA MORIRE!!! ***
eztw32.dll IO L'HO TROVATA GRATIS
ho trovato questo ma dove va la dll?
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents button4 As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.button4 = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'button4
'
Me.button4.Location = New System.Drawing.Point(224, 32)
Me.button4.Name = "button4"
Me.button4.TabIndex = 0
Me.button4.Text = "Button1"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(168, 128)
Me.Label1.Name = "Label1"
Me.Label1.TabIndex = 1
Me.Label1.Text = "Label1"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(292, 266)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.button4)
Me.Name = "Form1"
Me.Text = "Form1"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Dim I As Integer
Declare Function TWAIN_AcquireToClipboard Lib "EZTW32.DLL" (ByVal hwndApp&, ByVal wPixTypes&) As Long
Declare Function TWAIN_SelectImageSource Lib "EZTW32.DLL" (ByVal hwndApp&) As Long
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim r As Long
r = TWAIN_SelectImageSource(Me.Handle.ToInt32)
r = TWAIN_AcquireToClipboard(Me.Handle.ToInt32, 0)
Label1.Image = Clipboard.GetDataObject.GetData(DataFormats.Bitmap )
Label1.Image.Save("C:\Toto " & I & ".bmp")
I = I + 1
MsgBox("Votre photo a été enregistré sur C:\Toto " & I - 1 & "")
End Sub
End Class
la dll va nella cartella bin.era ovvio o no?