|
-
Dec 3rd, 2003, 04:39 PM
#1
Thread Starter
Addicted Member
Saving image
I need to do the following:
1) Load picture (.jpg) in PictureBox/Image.
2) Load textbox on the picture and allow the user drag and drop the textbox into the picture and typing text into the textbox.
3) Saving the picture with this textbox as new file (.jpg)
Any ideas how to implement that?
-
Dec 3rd, 2003, 05:03 PM
#2
-
Dec 3rd, 2003, 05:11 PM
#3
For textbox drag :
VB Code:
Option Explicit
Dim XX As Integer
Dim YY As Integer
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
XX = X
YY = Y
End Sub
Private Sub Text1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Text1.MousePointer = vbSizeAll
Text1.Left = Text1.Left + X - XX
Text1.Top = Text1.Top + Y - YY
End If
End Sub
Private Sub Text1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Text1.MousePointer = vbDefault
End Sub
Has someone helped you? Then you can Rate their helpful post. 
-
Dec 3rd, 2003, 05:25 PM
#4
Thread Starter
Addicted Member
OK. It's easy, what about 'Saving the picture with this textbox as new file (.jpg)' ???
-
Dec 3rd, 2003, 06:07 PM
#5
-
Dec 8th, 2003, 12:46 AM
#6
Thread Starter
Addicted Member
Originally posted by manavo11
Well, one (stupid) option is you can take a screenshot of the pic box with the textbox on it and save that...
Could you show me how to take a screenshot of the pic box with the textbox on it and save that?
-
Dec 8th, 2003, 05:56 AM
#7
-
Dec 9th, 2003, 10:26 AM
#8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|