Results 1 to 2 of 2

Thread: Utility to convert diagram into vb code?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2010
    Posts
    8

    Smile 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

  2. #2
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width