void add_vertex(double x, double y, ShapePath.FlagsAndCommand cmd)
 {
     if (ShapePath.is_move_to(cmd))
     {
         move_to_d(x, y);
     }
     else
     if (ShapePath.is_vertex(cmd))
     {
         line_to_d(x, y);
     }
     else
     if (ShapePath.is_close(cmd))
     {
         m_VectorClipper.line_to(m_Rasterizer, m_start_x, m_start_y);
     }
 }
Ejemplo n.º 2
0
 private void AddVertex(VertexData vertexData)
 {
     if (ShapePath.is_move_to(vertexData.command))
     {
         move_to_d(vertexData.position.X, vertexData.position.Y);
     }
     else
     {
         if (ShapePath.is_vertex(vertexData.command))
         {
             line_to_d(vertexData.position.X, vertexData.position.Y);
         }
         else
         {
             if (ShapePath.is_close(vertexData.command))
             {
                 close_polygon();
             }
         }
     }
 }