Utility to convert diagram into vb code?
Hi all, very new to VB.net programing, but would like to include in my UI a diagram, something like this one-
http://i885.photobucket.com/albums/a...rewerygif1.jpg
As you can see it its very simple consisting of lines and circles. What id like to do is convert this into vb code, to do it manualy would mean having to find out where all the lines start and finish and what pixel position they are ect.
It struck me as relitivly simple to have some kind of utility where you could load a diagram such as this and have it generate all the code needed just to simply draw the picture...but i cant find one anywhere on the net...does anyone know of one?
Or am i going about this the wrong way? Is there a simple way of converting that diagram into code?
My plan is to have a series of bitmaps and over draw them to make them appear amimated.
Cheers!
Steve
Re: Utility to convert diagram into vb code?
VB6's built-in drawing functions: Line(which can also make a rectangle), and Circle. For the text: try setting the properties: CurrentX, and CurrentY and using the Print statement. Pretty sure these are similar between versions.
These apply to Form/PictureBox.
Also, since you're in .Net there's a Graphics namespace with access to GDI+(afaik), which can do higher quality rasterization.