|
-
Sep 5th, 2010, 03:24 AM
#1
Thread Starter
New Member
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-

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
-
Sep 5th, 2010, 05:05 AM
#2
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.
Software I use and highly recommend: Opera, Miranda IM, Peerblock, Winamp, Unlocker Assistant, JoyToKey, Virtual CloneDrive, Secunia PSI, ExplorerXP, GOM Player, Real Alternative, Quicktime Alternative,Sumatra PDF, and non-freeware: Photoshop and VB6( ).
My codebank: AllRGB, Rounded Rectangle(math), Binary Server, Buddy Paint, LoadPictureGDI+, System GUID/Volume Serial, HexToAsc, List all processes and their paths, quasiString matching
Strings(search, extraction, retrieval etc): Retrieve BBCode Link from HTML, RemoveBetween ()'s, strFindBetween(str1,str2), Insert text in HTML, HTML - GetSpanByID
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
|