Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shot In The Dark - Signature Capture Device and VB

Status
Not open for further replies.

Ads

Programmer
May 29, 2001
17
0
0
CA
Hey...
Ok, I have a signature capture device that draws a signature into a picture box... Everything works well, except I cannot get the Picture1.Picture item to save into it's OLE Database field. It saves a null field.

My Qustion: Is the .Picture property the correct property to export or should it be a pixel set. The snippet of code below may help out...

Private Sub GIIEPad1_PadData(ByVal abs_x As Long, ByVal abs_y As Long, ByVal abs_z As Long, ByVal fTouch As Boolean, ByVal fTap As Boolean, ByVal bmButtonState As Integer, ByVal dwTimeStamp As Long, ByVal dwSequenceNum As Long)

Dim X As Long
Dim Y As Long

X = (Picture1.Width * (abs_x - g_xMin)) / (g_xMax - g_xMin)
Y = (Picture1.Height * (abs_y - g_yMin)) / (g_yMax - g_yMin)
If (Not fTouch) Then
Picture1.PSet (X, Y)
g_fFirstTouch = True
Else
If (Not g_fFirstTouch) Then
Picture1.Line (g_lastX, g_lastY)-(X, Y)
Else
Picture1.PSet (X, Y)
g_fFirstTouch = False
End If
End If

g_lastX = X
g_lastY = Y

End Sub

Thanks for all your help....
 

Try .Image

FAQ222-2244 for the best results from these forums.

Good Luck

 
Maybe....
I am trying to go about it a different way. I will let you know...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top