|
/////////////////////////////////////////////////////////////////////////////
//
// (c) 2007 BinaryComponents Ltd. All Rights Reserved.
//
// http://www.binarycomponents.com/
//
/////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
namespace BinaryComponents.VectorGraphics.Styles.Modifiers
{
public class RectangleMarkerReplacementModifier : MarkerReplacementModifier
{
protected override Primitives.VisualItem CreateItem( Primitives.BoundsMarker marker )
{
Primitives.Path rect = new Primitives.Path();
rect.Add( new Primitives.Path.Move( marker.Rectangle.TopLeft ) );
rect.Add( new Primitives.Path.Line( marker.Rectangle.TopRight ) );
rect.Add( new Primitives.Path.Line( marker.Rectangle.BottomRight ) );
rect.Add( new Primitives.Path.Line( marker.Rectangle.BottomLeft ) );
rect.Add( new Primitives.Path.Line( marker.Rectangle.TopLeft ) );
rect.Add( new Primitives.Path.Close() );
return rect;
}
protected override Primitives.VisualItem CreateItem( Primitives.PointMarker marker )
{
return null;
}
}
}
|
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.
I'm currently working for a small start-up company, BinaryComponents Ltd, producing the FeedGhost RSS reader.
FeedGhost RSS Reader:
http://www.feedghost.com
Bespoke Software Development
http://www.binarycomponents.com