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
Syntax
public abstract class BitmapSpriteBase : BasePointMarker, IPointMarker  
Remarks
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
Example
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

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     System.Windows.Controls.ContentControl
                        SciChart.Charting.Visuals.PointMarkers.BasePointMarker
                           SciChart.Charting.Visuals.PointMarkers.BitmapSpriteBase
                              SciChart.Charting.Visuals.PointMarkers.CrossPointMarker
                              SciChart.Charting.Visuals.PointMarkers.EllipsePointMarker
                              SciChart.Charting.Visuals.PointMarkers.InvertedTrianglePointMarker
                              SciChart.Charting.Visuals.PointMarkers.SpritePointMarker
                              SciChart.Charting.Visuals.PointMarkers.SquarePointMarker
                              SciChart.Charting.Visuals.PointMarkers.TrianglePointMarker
                              SciChart.Charting.Visuals.PointMarkers.XPointMarker

Requirements

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