iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCIPathDrawingContext

@protocol ISCIPathDrawingContext <NSObject>

Defines the interface for path based rendering on ISCIRenderContext2D.

  • Starts the context at specified x, y coordinate with specified path color.

    Declaration

    Objective-C

    - (nonnull id<ISCIPathDrawingContext>)beginWithColor:
                                              (nonnull id<ISCIPathColor>)color
                                                       x:(float)x
                                                       y:(float)y;

    Parameters

    color

    The pen or brush for the drawing operation.

    x

    The x-coordinate in pixels.

    y

    The y-coordinate in pixels.

    Return Value

    The ISCIPathDrawingContext instance, to allow fluent API.

  • Moves the context to the specified x, y coordinate.

    Declaration

    Objective-C

    - (nonnull id<ISCIPathDrawingContext>)moveToX:(float)x y:(float)y;

    Parameters

    x

    The x-coordinate in pixels.

    y

    The y-coordinate in pixels.

    Return Value

    The ISCIPathDrawingContext instance, to allow fluent API.

  • Moves the context to multiple x, y coordinates.

    Declaration

    Objective-C

    - (nonnull id<ISCIPathDrawingContext>)moveToPoints:(nonnull const float *)points
                                            startIndex:(int)startIndex
                                                 count:(int)count;

    Parameters

    points

    The array with x, y coordinates in pixels.

    startIndex

    The start index in points array to draw.

    count

    The amount of points to draw.

    Return Value

    The ISCIPathDrawingContext instance, to allow fluent API.

  • Ends the segment, flushing to render target.

    Declaration

    Objective-C

    - (void)end;

    Swift

    func end()