WPF Charting Documentation - SciChart WPF Charts SDK v5.x
RenderContextBase Class Members
Properties  Methods 


The following tables list the members exposed by RenderContextBase.

Protected Constructors
 NameDescription
Protected ConstructorRenderContextBase Constructor  
Top
Public Properties
 NameDescription
Public PropertyLayersGets a collection of RenderOperationLayer layers, which allow rendering operations to be posted to a layered queue for later execution in order (and correct Z-ordering).  
Public PropertyViewportSizeGets the size of the current viewport for this render operation  
Top
Protected Properties
 NameDescription
Protected PropertyFontCache  
Top
Public Methods
 NameDescription
Public MethodAsExtremeRenderContext  
Public MethodBeginLineBegins a Polyline segment, returning the IPathDrawingContext. This is the fastest way to draw lines and simply a proxy to DrawLines method.  
Public MethodBeginPolygonBegins a filled Polygon segment, returning the IPathDrawingContext. This is the fastest way to draw polygon and simply a proxy to FillArea method.  
Public MethodBeginSpriteBatchBegins a Sprite Batch, returning the IPathDrawingContext. This is the fastest way to draw sprites and simply a proxy to DrawSprites(ISprite2D,Rect,IEnumerable<Point>) method.  
Public MethodClearClears the IRenderSurface2D  
Public MethodCreateBrushOverloaded. Creates a IBrush2D valid for the current render pass. Use this to draw rectangles, polygons and shaded areas  
Public MethodCreatePenCreates a IPen2D valid for the current render pass. Use this to draw outlines, quads and lines  
Public MethodCreateSpriteOverloaded. Creates a Sprite from FrameworkElement by rendering to bitmap. This may be used in the DrawSprite method to draw to the screen repeatedly  
Public MethodCreateTexture  
Public MethodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.  
Public MethodDisposeResourceAfterDrawCall this method, passing in System.IDisposable instance to dispose after the render pass completes. Called internally by SciChart to lazy-dispose of Direct2D and Direct3D brushes and textures  
Public MethodDrawEllipseDraws an Ellipse on the IRenderSurface2D using the specified outline Pen and fill Brush  
Public MethodDrawEllipsesDraws 0..N Ellipses at the points passed in with the same width, height, pen and brush  
Public MethodDrawHeightTextureContours  
Public MethodDrawLineDraws a single line on the IRenderSurface2D using the specified IPen2D. Note for a faster implementation in some rasterizers, use DrawLines  
Public MethodDrawLinesDraws a multi-point line on the IRenderSurface2D using the specified IPen2D  
Public MethodDrawPixelsVerticallyOverloaded. Draws vertical scan line for heatmap from bottom to top, from yStart to yEnd  
Public MethodDrawQuadDraws a Quad on the IRenderSurface2D using the specified IPen2D  
Public MethodDrawSpriteBlits the source image onto the IRenderSurface2D  
Public MethodDrawSpritesOverloaded. Batch draw of the source sprite onto the IRenderSurface2D  
Public MethodDrawTextDraws text if it does not go outside  
Public MethodDrawTexture  
Public MethodFillAreaFills an area, limited by two line segments, e.g. as in a stacked mountain chart, using the specified IBrush2D  
Public MethodFillPolygonFills a polygon on the IRenderSurface2D using the specifie IBrush2D  
Public MethodFillRectangleOverloaded. Fills a rectangle on the IRenderSurface2D using the specified IBrush2D  
Public MethodIsCompatibleType<T>  
Public MethodSetPrimitivesCachingEnabledenables/disables primitves chaching optimization ( Direct3D renderer only )  
Top
Protected Methods
 NameDescription
Protected MethodClipAreaOverloaded. Used internally to clip a polygon or line-segment to the viewport  
Protected MethodClipRectangleOverloaded.   
Protected MethodClipZeroLineForAreaUsed internally: Clips the zero line (e.g. in mountain fills) to the viewport  
Protected MethodIsInBoundsReturns true if the point is inside the viewport  
Top
Extension Methods
 NameDescription
Public Extension MethodGetStyledPenTakes a System.Windows.Shapes.Line with a System.Windows.Style applied, and returns a SciChart compatible SciChart.Drawing.Common.IPen2D which can be used with the SciChart.Drawing.Common.IRenderContext2D for drawing lines
Public Extension MethodSafeDisposeChecks for null and if not null, calls Dispose
Public Extension MethodToEnumerable<T>Yields a single item, converting it to System.Collections.IEnumerable.
Public Extension MethodToStringArray2D<T>
Top
See Also

Reference

RenderContextBase Class
SciChart.Drawing.Common Namespace

 

 


SCICHART ® is a Registered Trademark in the UK, US and EU. Copyright SciChart Ltd 2011-2018.

Send Feedback