多角形サンプル1
多角形サンプル1(『<biz-Stream_home>/sample/xml/Polygon/PolygonSample1.xml
』)
<?xml version="1.0" encoding="UTF-8"?> <!-- XML file created by biz-Stream Designer --> <!-- biz-Stream Copyright BrainSellers.com Corp. --> <Layout Name="PolygonSample1" Width="100" Height="100" X="10" Y="10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:bs="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" xmlns:pdf="http://www.brainsellers.com/schema" version="5.0.0"> <!-- 外枠(青線) --> <Square Width="70" Height="70" LineColor="14,0,176" LineStyle="Solid"/> <!-- Polygon1 --> <Polygon Name="Polygon1" X="10" Y="20" LineColor="0,0,0" FillColor="178,178,178" LineStyle="Solid"> <Vertex dx="0" dy="0"/> <Vertex dx="25" dy="-15"/> <Vertex dx="50" dy="0"/> <Vertex dx="50" dy="20"/> <Vertex dx="25" dy="35"/> <Vertex dx="0" dy="20"/> </Polygon> </Layout>
生成されるPDF(『<biz-Stream_home>/sample/xml/Polygon/PolygonSample1.pdf
』)

頂点① 座標(0,0)
頂点② 座標(25,-15)
頂点③ 座標(50,0)
頂点④ 座標(50,20)
頂点⑤ 座標(25,35)
頂点⑥ 座標(0,20)
- ※Vertex(頂点)を指定した順序で、頂点を繋ぐ
線が引かれます。
指定順序にご注意ください。
polygonの座標:(10,20)が、子要素Vertexの基点(0,0)となります。