The ShapeConverter converts vector data into WPF/XAML shapes. The main intention is to convert icons and logos you get from your designer so that you can use the icons and logos as vector data in your WPF projects.
- Adobe Illustrator (*.ai)
- Adobe Photoshop (*.psd, *.psb)
- Encapsulated Postscript (*.eps)
- Scalable Vector Graphic (*.svg, *.svgz)
StreamGeometry
for single color shapes, allows to set the color at runtimeDrawingBrush
for multi color shapes- C# source code to generate a
Geometry
with variable dimensions at runtime - 24 output formats
- linear and radial gradients
- transparency (except EPS) including transparent gradients
- the generated data do not contain any transformations (one of the main goals of the ShapeConverter's generated code)
- clipping regions are removed if possible or at least minimized and optimized
- the XAML does not contain any transformation, the transformations are incorporated into the coordinates of each resulting shape so that a single
Geometry
is a valid shape without further information needed - normalize the coordinates to the range 0..100 (default) to decouple the generated data from the designer's coordinate space
- selectively deselect parts of the shape if the shape consists of multiple shapes
- show a background checkboard to verify transparencies of the shape
- drag & drop a file
- reverse engineer a given stream geometry in the Stream tab
- single executable, no installation required
- Icon (*.ico) with all resolutions 16x16, 32x32, 64x64, 128x128, 256x256
- Image (*.png, *.jpg, *.tiff, *.bmp)
- GIF (*.gif)
- Scalable Vector Graphic (*.svg, *.svgz)
- Encapsulated Postscript (*.eps)
- PdfSharp from Stefan Lange, empira Software GmbH
- psd-parser from Ntreev Soft co., Ltd.
You might have noticed there isn't much activity here. It's not because the project is unmaintained, it's because the ShapeConverter is done, it just works. Way more features are implemented than were planned at the beginning, the ShapeConverter has reached a state where it serves all conversion needs for the daily use very well. EPS and SVG standards are not 100% supported but the importers support far more than you'll ever encounter in your SVG or EPS icons (e.g. CSS style sheets in SVG). If more is needed it will be implemented.
- You must not create a fork unless you want to contribute to the ShapeConverter
- The forks from the following users just mess up the fork list and must be ignored (the forks exist just because they can and don't contribute anything): Egaros, 93lab, 0000duck, justinhachemeister