public void AddRoundRect(SKRoundRect rect, SKPathDirection direction, uint startIndex) { if (rect == null) { throw new ArgumentNullException(nameof(rect)); } SkiaApi.sk_path_add_rrect_start(Handle, rect.Handle, direction, startIndex); }
public void AddRoundRect(SKRoundRect rect, SKPathDirection direction = SKPathDirection.Clockwise) { if (rect == null) { throw new ArgumentNullException(nameof(rect)); } SkiaApi.sk_path_add_rrect(Handle, rect.Handle, direction); }
public void ClipRoundRect(SKRoundRect rect, SKClipOperation operation = SKClipOperation.Intersect, bool antialias = false) { if (rect == null) { throw new ArgumentNullException(nameof(rect)); } SkiaApi.sk_canvas_clip_rrect_with_operation(Handle, rect.Handle, operation, antialias); }
public void DrawRoundRect(SKRoundRect rect, SKPaint paint) { if (rect == null) { throw new ArgumentNullException(nameof(rect)); } if (paint == null) { throw new ArgumentNullException(nameof(paint)); } SkiaApi.sk_canvas_draw_rrect(Handle, rect.Handle, paint.Handle); }
public void DrawRoundRectDifference(SKRoundRect outer, SKRoundRect inner, SKPaint paint) { if (outer == null) { throw new ArgumentNullException(nameof(outer)); } if (inner == null) { throw new ArgumentNullException(nameof(inner)); } if (paint == null) throw new ArgumentNullException(nameof(paint)); }
public bool TryTransform(SKMatrix matrix, out SKRoundRect transformed) { var destHandle = SkiaApi.sk_rrect_new(); if (SkiaApi.sk_rrect_transform(Handle, &matrix, destHandle)) { transformed = new SKRoundRect(destHandle, true); return(true); } transformed = null; return(false); }
public SKRoundRect GetRoundRect() { var rrect = new SKRoundRect(); var result = SkiaApi.sk_path_is_rrect(Handle, rrect.Handle); if (result) { return(rrect); } else { rrect.Dispose(); return(null); } }
// DrawRoundRectDifference public void DrawRoundRectDifference(SKRoundRect outer, SKRoundRect inner, SKPaint paint) { if (outer == null) { throw new ArgumentNullException(nameof(outer)); } if (inner == null) { throw new ArgumentNullException(nameof(inner)); } if (paint == null) { throw new ArgumentNullException(nameof(paint)); } SkiaApi.sk_canvas_draw_drrect(Handle, outer.Handle, inner.Handle, paint.Handle); }
public SKRoundRect(SKRoundRect rrect) : this(SkiaApi.sk_rrect_new_copy(rrect.Handle), true) { }