
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIFillPaint
@protocol ISCIFillPaint <NSObject>
Defines a protocol which provides a way to fill rect, ellipse or CGPathRef
on CGContextRef
.
-
Paints a rectangle fill on the
CGContextRef
.Declaration
Objective-C
- (void)fillRect:(CGRect)rect inContext:(nonnull CGContextRef)context;
Parameters
rect
The rectangle, specified in user space coordinates.
context
The graphics context to draw on.
-
Paints the ellipse fill that fits inside the specified
rect
.Declaration
Objective-C
- (void)fillEllipseInRect:(CGRect)rect inContext:(nonnull CGContextRef)context;
Parameters
rect
The rectangle that defines the area for the ellipse to fit in.
context
The graphics context to draw on.
-
Paints a
CGPathRef
fill on the passed inCGContextRef
.Declaration
Objective-C
- (void)fillPath:(nonnull CGPathRef)path insideRect:(CGRect)rect inContext:(nonnull CGContextRef)context;
Parameters
path
The
CGPathRef
instange to be drawn on thecontext
context
The graphics context to draw on.