iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIDrawingContext
@protocol ISCIDrawingContext <NSObject>
Defines the drawing context methods for drawing many primitives with one draw call.
-
Draws provided points with this drawing context on provided
ISCIRenderContext2D.Declaration
Objective-C
- (void)drawWith:(nonnull id<ISCIRenderContext2D>)renderContext pathColor:(nonnull id<ISCIPathColor>)pathColor points:(nonnull float *)points startIndex:(int)startIndex count:(int)count;Swift
func draw(with renderContext: any ISCIRenderContext2D, pathColor: any ISCIPathColor, points: UnsafeMutablePointer<Float>, start startIndex: Int32, count: Int32)Parameters
renderContextThe render context to draw on.
pathColorThe path color to draw points with.
pointsThe array of point to draw.
startIndexThe start index in points array to start drawing from.
countThe amount of points to draw from points array.
View on GitHub