xml中的代码:
<?xml version="1.0"?>
<Shapes xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ShapeTemplate Id="Shape0" DefaultSize="80,50" IsQuick="true" Rows="*" Columns="*">
<Start X="0" Y="0" FillColor="Red" />
<Line X="0" Y="1" />
<Line X="1" Y="1" />
<Line X="1" Y="0" />
<Line X="0" Y="0" />
<ConnectionPoints>
<ShapePoint X="0" Y="0" />
<ShapePoint X="0.5" Y="0" />
<ShapePoint X="1" Y="0" />
<ShapePoint X="1" Y="0.5" />
<ShapePoint X="1" Y="1" />
<ShapePoint X="0.5" Y="1" />
<ShapePoint X="0" Y="1" />
<ShapePoint X="0" Y="0.5" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape1" DefaultSize="50,80" IsQuick="true" Rows="*" Columns="*">
<Start X="0" Y="0.17" FillColor="Green" />
<Arc X="1" Y="0.17" Size="CreateSize([W] / 2, [H] / 6)" Direction="Clockwise"/>
<Line X="1" Y="1" />
<Arc X="0" Y="1" Size="CreateSize([W] / 2, [H] / 6)" Direction="Counterclockwise"/>
<Line X="0" Y="0" />
<ConnectionPoints>
<ShapePoint X="0" Y="0" />
<ShapePoint X="0.5" Y="0" />
<ShapePoint X="1" Y="0" />
<ShapePoint X="1" Y="0.5" />
<ShapePoint X="1" Y="1" />
<ShapePoint X="0.5" Y="1" />
<ShapePoint X="0" Y="1" />
<ShapePoint X="0" Y="0.5" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape2" DefaultSize="50,80" Rows="*" Columns="*">
<Start X="0" Y="0.5" FillColor="Green" />
<Arc X="1" Y="0.5" Size="CreateSize([W] / 2, [H] / 2)" Direction="Clockwise"/>
<Line X="1" Y="1" />
<Line X="0" Y="1" />
<Line X="0" Y="0" />
<ConnectionPoints>
<ShapePoint X="0" Y="0" />
<ShapePoint X="1" Y="0" />
<ShapePoint X="0" Y="1" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape3" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0" Y="0.5" FillColor="Green" />
<Arc X="1" Y="0.5" Size="CreateSize([W] / 2, [H] / 2)" Direction="Clockwise"/>
<Arc X="0" Y="0.5" Size="CreateSize([W] / 2, [H] / 2)" Direction="Clockwise"/>
<ConnectionPoints>
<ShapePoint X="0" Y="0" />
<ShapePoint X="1" Y="0" />
<ShapePoint X="0" Y="1" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape4" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0.5" Y="0" FillColor="Green" />
<Line X="1" Y="1" />
<Line X="0" Y="1" />
<Line X="0.5" Y="0" />
<ConnectionPoints>
<ShapePoint X="0" Y="0" />
<ShapePoint X="1" Y="0" />
<ShapePoint X="0" Y="1" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape5" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0" Y="0.5" FillColor="Green" />
<Arc X="1" Y="0.5" Size="CreateSize([W] / 2, [H] / 4)" Direction="Clockwise"/>
<Arc X="0" Y="0.5" Size="CreateSize([W] / 2, [H] / 4)" Direction="Clockwise"/>
<ConnectionPoints>
<ShapePoint X="0" Y="0" />
<ShapePoint X="1" Y="0" />
<ShapePoint X="0" Y="1" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape6" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0.5" Y="0" FillColor="Green" />
<Line X="0" Y="0.5" />
<Line X="0.5" Y="1" />
<Line X="1" Y="0.5" />
<Line X="0.5" Y="0" />
<ConnectionPoints>
<ShapePoint X="0.5" Y="0" />
<ShapePoint X="0" Y="0.5" />
<ShapePoint X="0.5" Y="1" />
<ShapePoint X="1" Y="0.5" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape7" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0.5" Y="0" FillColor="Green" />
<Line X="1" Y="0.5" />
<Line X="1" Y="1" />
<Line X="0" Y="1" />
<Line X="0" Y="0.5" />
<Line X="0.5" Y="0" />
<ConnectionPoints>
<ShapePoint X="0.5" Y="0" />
<ShapePoint X="1" Y="0.5" />
<ShapePoint X="1" Y="1" />
<ShapePoint X="0" Y="1" />
<ShapePoint X="0" Y="0.5" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape8" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0" Y="1" FillColor="Green" />
<Line X="0" Y="0.5" />
<Arc X="1" Y="0.5" Size="CreateSize([W] / 2, [H] / 2)" Direction="Clockwise"/>
<Line X="1" Y="1" />
<Line X="0" Y="1" />
<Line X="0.5" Y="0" />
<Line X="1" Y="1" />
<ConnectionPoints>
<ShapePoint X="0" Y="0.5" />
<ShapePoint X="0.5" Y="0" />
<ShapePoint X="1" Y="0.5" />
<ShapePoint X="1" Y="1" />
<ShapePoint X="0" Y="1" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape9" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0" Y="1" FillColor="Green" />
<Line X="0" Y="0.5" />
<Arc X="1" Y="0.5" Size="CreateSize([W] / 2, [H] / 2)" Direction="Clockwise"/>
<Line X="1" Y="1" />
<Arc X="0" Y="1" Size="CreateSize([W] / 2, [H] / 6)" Direction="Counterclockwise"/>
<Start X="0" Y="1" FillColor="Green" />
<Line X="0.5" Y="0" />
<Line X="1" Y="1" />
<Arc X="0" Y="1" Size="CreateSize([W] / 2, [H] / 6)" Direction="Counterclockwise"/>
<ConnectionPoints>
<ShapePoint X="0" Y="0.5" />
<ShapePoint X="1" Y="0.5" />
<ShapePoint X="1" Y="1" />
<ShapePoint X="0" Y="1" />
<ShapePoint X="0.5" Y="0" />
</ConnectionPoints>
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape10" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0" Y="0.5" FillColor="Green" />
<Line X="0.25" Y="0" />
<Line X="0.75" Y="0" />
<Line X="1" Y="0.5" />
<Line X="0.75" Y="1" />
<Line X="0.25" Y="1" />
<Line X="0" Y="0.5" />
<Parameters />
</ShapeTemplate>
<ShapeTemplate Id="Shape11" DefaultSize="80,80" Rows="*" Columns="*">
<Start X="0" Y="0.25" FillColor="Green" />
<Line X="0.5" Y="0" />
<Line X="1" Y="0.25" />
<Line X="1" Y="0.75" />
<Line X="0.5" Y="1" />
<Line X="0" Y="0.75" />
<Line X="0" Y="0.25" />
<Parameters />
</ShapeTemplate>
</Shapes>
运行结果: