jcardenas
asked on
Code for Draw Program
I am learnig VB6 and i am looking for a source code to draw lines,circles, and freehand form.
Thanks,
Jairo
Thanks,
Jairo
Hello Jairo,
just type "Line" in the code module and press F1, in most cases help files covers needs of learning...
Repeat this with word "Circle".
Sincerely yours,
Crin
just type "Line" in the code module and press F1, in most cases help files covers needs of learning...
Repeat this with word "Circle".
Sincerely yours,
Crin
http://www.codearchive.com/vbasic/graphics.html
lots of drawing examples there for you to look through
lots of drawing examples there for you to look through
<Make a simple drawing program that demonstrates a lot of useful techniques (32K)>
http://www.vb-helper.com/Howto/compat.zip
Cheers
http://www.vb-helper.com/Howto/compat.zip
Cheers
ASKER
Ok,thanks for your excellent help, with the codes submmited by Ark and Ruchi is clear the functions for Line, Circle; but for freehand is not, can you give some help about.
Thanks,
Jairo
Colombia
Thanks,
Jairo
Colombia
i know one of those samples at the link i pointed to demomstrates that
" Demo of a bitmap editor " There is a freehand in it.
http://www.vbexplorer.com/files/icon32.zip
http://www.xploiter.com/programming/vb/vb3_tutor/vb3f.htm
http://www.vbexplorer.com/files/icon32.zip
http://www.xploiter.com/programming/vb/vb3_tutor/vb3f.htm
It's about free hand pencil drawing. Very good information
http://www.activex3d.com/Items/LearnVisualBasicFast/Learn_Visual_Basic_Fast_022.htm
http://www.activex3d.com/Items/LearnVisualBasicFast/Learn_Visual_Basic_Fast_022.htm
The following code sample won a contest for best code.
I recommend you try it..
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=2801
I recommend you try it..
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=2801
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your Support,
Regards,
Jairo
Regards,
Jairo
Option Explicit
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
frmDraw.CurrentX = X
frmDraw.CurrentY = Y
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Line (frmDraw.CurrentX, frmDraw.CurrentY)-(X, Y), QBColor(0)
End If
End Sub