-
New Kid on the block
Hi guys:
I'm new to this. I have would like to do a simple graphic with VB2005 or VB6. Here is what my intention.
Drawing a line from Left to Right with a mouse but remembering all coordinates. I hope to draw the line in 3D graphic where I look like a Welding line where the color will be red at the current point but the previous line will have shaded or degraded color. It don't have to real as what I normally see in great 3d graphic display.
I need to crash start this project. I'm "Ok" with VB but not VC. Can Some one guide me or provide some sample code (I search thru Code Bank, none meet my need).
thanks
:)
-
Re: New Kid on the block
Im not sure how you would handle the gradient welding/redhot steel/malten look, but to get all the co-ords of mouse movement..
Code:
Private lstPoints as list(of point)
Private sub mouseMove(byval sender as object,byval e as MouseEventArgs) handles me.mousemove
if lstPoints is nothing then
lstPoints = new list(of point)
end if
lstPoints.add(e.location)
End sub
That will record every pixel that the mouse movement covers. now im sure there is an easy way to use these points to acheive the look you want, note this line will be only one pixel wide, but Im sure you could find a function which will make a shape to follow that line as the center, and set the center gradient to red and orange or whatever...
-
Re: New Kid on the block
Just to clarify. VB6 is older than VB.net and is not part of the .net framework hence the code is completely different. Which are you using?