Members  Example 
BitmapSpriteBase Class
Allows any custom drawing to be rendered as a Sprite (bitmap) at each each data-point location using the following XAML syntax. Derived classes should override RenderToCache to specify the desired drawing.
Object Model
BitmapSpriteBase ClassIPointMarkerBatchStrategy InterfaceIRenderableSeries InterfaceIRenderPassData InterfaceIDataSeries InterfaceIHitTestProvider InterfaceIPaletteProvider InterfaceISeriesAnimation InterfaceIServiceContainer InterfaceIAxis InterfaceIAxis Interface
public abstract class BitmapSpriteBase : BasePointMarker, IPointMarker  
BasePointMarker derived types use fast bitmap rendering to draw data-points to the screen. This means that traditional WPF style tooltips won't work. For that we need to use the HitTest API. Please see the HitTest sections of the user manual for more information
Shows how to create a derived class of BitmapSpriteBase to render a custom pointmarker
public class StarPointMarker : BitmapSpriteBase 
   // RenderToCache draws once, and the resultant cached bitmap is repeated using SciChart's fast drawing engine
   protected override void RenderToCache(IRenderContext2D context, IPen2D strokePen, IBrush2D fillBrush)
      var offset = 2d;
      var polygon = new Point[] 
         new Point(Width/2, 0), 
         new Point(Width/2 + offset, Height/2 - offset), 
         new Point(Width, Height/2),  
         new Point(Width/2 + offset, Height/2 + offset), 
         new Point(Width/2, Height), 
         new Point(Width/2-offset, Height/2+offset), 
         new Point(0, Height/2), 
         new Point(Width/2-offset, Height/2-offset), 
         new Point(Width/2, 0)
      context.FillPolygon(fillBrush, polygon);
      context.DrawLines(strokePen, polygon);
Inheritance Hierarchy



Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also