0

I would like to generate vectorial shapes in various output formats: bmp, png, svg and XAML. So basically, this is a library (no user interface) which generate internally a vectorial shape in order to export it. The shape I want to export might contain a combination of rectangle, lines, text and circle.

But I don't know which way to choose in order to handle all those formats (bitmap and vectorial) easily.

So far, I have considered:

  • Building programmatically the shape with XAML. Example; create a Rectangle(), add it to a Canvas(). From there, it is very easy to generate the XAML and to render the images. But I'm not sure that it is fast.
  • Use System.Windows.Media methods to draw my shapes. But how to generate XAML (and svg)?
  • Use GDI+ methods (System.Drawing). Like the preceding point, I'm stuck when generating XAML.

Maybe there is another way to generate my vectorial shape and then export it?

Thank you

4

0 回答 0