Click here to Skip to main content
15,881,882 members
Articles / Desktop Programming / WPF

SharpVectors - SVG# Reloaded: An Introduction

Rate me:
Please Sign up or sign in to vote.
4.98/5 (33 votes)
17 Nov 2010BSD10 min read 204.2K   21.7K   101  
A C# library for converting SVG to WPF and viewing SVG files in WPF Applications
// <developer>niklas@protocol7.com</developer>
// <completed>90</completed>

using System;
using System.Xml;

namespace SharpVectors.Dom.Svg
{
	/// <summary>
	/// </summary>
    public sealed class SvgPolygonElement : SvgPolyElement, ISvgPolygonElement
	{
		#region Constructors and Destructor

		public SvgPolygonElement(string prefix, string localname, string ns, SvgDocument doc)
			: base(prefix, localname, ns, doc)
		{
		}

		#endregion

		#region ISharpMarkerHost Members

        public override SvgPointF[] MarkerPositions
		{
			get
			{
                SvgPointF[] p1 = base.MarkerPositions;
                SvgPointF[] p2 = new SvgPointF[p1.Length + 1];
				Array.Copy(p1, 0, p2, 0, p1.Length);
				p2[p2.Length-1] = p1[0];

				return p2;
			}
		}

		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License


Written By
Engineer
Japan Japan
Systems Engineer

Comments and Discussions