Visual GDI+

I think I wrote something about a graphics wish before, but it was way more advance than this one.

It will be nice if there was software or a part of Visual Studio.Net that acts like a graphics program were you can draw drawings and those drawing to be converted to code, and resource files.

So instead of spending long time drawing some parts of a custom control using the code, I can do the same thing much more faster using Visual GDI+, and use the automatically generated code.

;-)


Answer this question

Visual GDI+

  • WiT8litZ

    I actually totally forgot about the metafiles, I can use Microsoft PowerPoint or any application to export to metafile, or Adobe Illustrator 10.

    About SVG, I just downloaded the code and binaries and I will have a look at them, I also believe that the XML graphics (SVG) will have a good future, looking at Adobe Illustrator 10 for example; it’s able to store its illustrations natively in SVG or compressed SVG.

  • JJ Kane

    Actually, you can use something alot easier, and a bit more dynamic, Scalable Vector Graphics (SVG).  SVG is an XML based language that discribes graphics in terms of vectors, and is very similar to GDI+.  But there is no MS SVG to GDI+ rendering engine.  So a group of us got together and created an open source project called SharpVectorGraphics (aka SVG# or SharpVectors).  You can get a bunch of info off our site - www.sharpvectors.org, including a link to the code (currently on SourceForge, an open source site), and you can even demo it thru a web page I set up.  There's a ton of code, a SVG DOM library, a SVG to GDI+ rendering Engine, and even a SVGPicture window that you can place in your WinForm.

    We got most of the static SVG stuff done, and are working on Scripting and Event support (but that's alot more that what you were looking for).

    What can you do with this now.  Create graphics on the fly using SVG templates.  If you have a SVG template, you can take a data source and dynamically add more to the XML, and then pass it into the render and get back a GDI+ Graphics object completely rendered.  Form thereyou can do what you want with it.  I use this method to create labels with bar codes dynamically, and then either render to the window, or to the printer.

    Another cool thing about SVG is that it is supported by Adobe Illustrator.  So you can let your graphic artist use there native tools to create the graphic templates, save them as SVG and then use them in your app.  This way everyone works with their natural development tools.

    Don XML

  • Thomas H. Grohser

    Just wait until you see what is in store for Illustrator 11.  There's nothing that I can say publically, but I'm beta testing it now, and SVG is my main focus.  I may even get a chapter in the next Illustator WOW book to show how graphic artists can make their Illustrator projects data driven (via SVG).

    The biggest complaint with AI 10, was the quality of the SVG it kicked out.  Everything was paths, duplicated items didn't use symbols, and everything was in the same coordinate system.  It made the generated SVG very hard to work with, and I would have to reverse engineer it so that I could make it easily data driven.  

    The SVG Open conference is in Vancouver this July (sponsered by the W3C) and I'll be doing 2 presentations on SharpVectors at the conference (an intro and an advanced course).  The main idea is to show how to incorporate SVG into your .Net apps.  Basically, its to show that .Net does SVG too.

    Don

  • Lau Han Ching

    This is pretty much what metafiles are; I frequently use Visio to create complex metafile graphics that I later load and draw from my applications.  I also use metafile enumeration to look for text keywords and do string substitutions, etc.  It would be nice to have a good metafile editor though, as Visio and similar programs have only limited control over the metafiles they produce.  If I could use the metafile comments feature from Visio, I could do much more complex animation and substitutions.

    Have a nice day,
    Robert W. Grubbs

  • Visual GDI+