3 implementations of ICanvas
Microsoft.Maui.Graphics (3)
AbstractCanvas.cs (1)
9 public abstract class AbstractCanvas<TState> : ICanvas, IDisposable where TState : CanvasState
PictureCanvas.cs (1)
9 public class PictureCanvas : ICanvas, IDisposable
ScalingCanvas.cs (1)
9 public class ScalingCanvas : ICanvas, IBlurrableCanvas
77 references to ICanvas
Microsoft.Maui (7)
Graphics\ShapeDrawable.cs (4)
52 public void Draw(ICanvas canvas, RectF dirtyRect) 72 void DrawStrokePath(ICanvas canvas, RectF dirtyRect, PathF path) 115 void DrawFillPath(ICanvas canvas, RectF dirtyRect, PathF path) 137 void ClipPath(ICanvas canvas, PathF path)
VisualDiagnostics\RectangleAdorner.cs (1)
70 public virtual void Draw(ICanvas canvas, RectF dirtyRect)
VisualDiagnostics\RectangleGridAdorner.cs (1)
25 public override void Draw(ICanvas canvas, RectF dirtyRect)
WindowOverlay\WindowOverlay.cs (1)
80 public void Draw(ICanvas canvas, RectF dirtyRect)
Microsoft.Maui.Graphics (65)
AbstractPattern.cs (1)
26 public abstract void Draw(ICanvas canvas);
BitmapExportContext.cs (1)
23 public abstract ICanvas Canvas { get; }
CanvasExtensions.cs (50)
5 public static void DrawLine(this ICanvas target, PointF point1, PointF point2) 10 public static void DrawRectangle(this ICanvas target, Rect rect) 15 public static void DrawRectangle(this ICanvas target, RectF rect) 20 public static void FillRectangle(this ICanvas target, Rect rect) 25 public static void FillRectangle(this ICanvas target, RectF rect) 30 public static void DrawRoundedRectangle(this ICanvas target, Rect rect, double cornerRadius) 35 public static void DrawRoundedRectangle(this ICanvas target, RectF rect, float cornerRadius) 40 public static void DrawRoundedRectangle(this ICanvas target, float x, float y, float width, float height, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius) 47 public static void DrawRoundedRectangle(this ICanvas target, Rect rect, double topLeftCornerRadius, double topRightCornerRadius, double bottomLeftCornerRadius, double bottomRightCornerRadius) 54 public static void DrawRoundedRectangle(this ICanvas target, RectF rect, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius) 61 public static void DrawRoundedRectangle(this ICanvas target, RectF rect, float xRadius, float yRadius) 68 public static void FillRoundedRectangle(this ICanvas target, Rect rect, double cornerRadius) 73 public static void FillRoundedRectangle(this ICanvas target, RectF rect, float cornerRadius) 78 public static void FillRoundedRectangle(this ICanvas target, float x, float y, float width, float height, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius) 85 public static void FillRoundedRectangle(this ICanvas target, Rect rect, double topLeftCornerRadius, double topRightCornerRadius, double bottomLeftCornerRadius, double bottomRightCornerRadius) 92 public static void FillRoundedRectangle(this ICanvas target, RectF rect, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius) 99 public static void FillRoundedRectangle(this ICanvas target, RectF rect, float xRadius, float yRadius) 106 public static void DrawEllipse(this ICanvas target, Rect rect) 111 public static void DrawEllipse(this ICanvas target, RectF rect) 116 public static void FillEllipse(this ICanvas target, Rect rect) 121 public static void FillEllipse(this ICanvas target, RectF rect) 126 public static void DrawPath(this ICanvas target, PathF path) 131 public static void FillPath(this ICanvas target, PathF path) 136 public static void FillPath(this ICanvas target, PathF path, WindingMode windingMode) 141 public static void ClipPath(this ICanvas target, PathF path, WindingMode windingMode = WindingMode.NonZero) 146 public static void ClipRectangle(this ICanvas target, Rect rect) 151 public static void ClipRectangle(this ICanvas target, RectF rect) 157 this ICanvas target, 169 this ICanvas target, 180 public static void FillCircle(this ICanvas target, float centerX, float centerY, float radius) 189 public static void FillCircle(this ICanvas target, Point center, double radius) 198 public static void FillCircle(this ICanvas target, PointF center, float radius) 207 public static void DrawCircle(this ICanvas target, float centerX, float centerY, float radius) 216 public static void DrawCircle(this ICanvas target, Point center, double radius) 225 public static void DrawCircle(this ICanvas target, PointF center, float radius) 248 public static void FillArc(this ICanvas canvas, float x, float y, float width, float height, float startAngle, float endAngle, Paint paint, bool clockwise) 265 public static void DrawArc(this ICanvas canvas, RectF bounds, float startAngle, float endAngle, bool clockwise, bool closed) 280 public static void DrawArc(this ICanvas canvas, Rect bounds, float startAngle, float endAngle, bool clockwise, bool closed) 295 public static void FillArc(this ICanvas canvas, RectF bounds, float startAngle, float endAngle, bool clockwise) 309 public static void FillArc(this ICanvas canvas, Rect bounds, float startAngle, float endAngle, bool clockwise) 319 public static void EnableDefaultShadow(this ICanvas canvas, float zoom = 1) 335 public static void ResetStroke(this ICanvas canvas) 344 public static void SetFillPattern(this ICanvas target, IPattern pattern) 350 this ICanvas target, 368 public static void SubtractFromClip(this ICanvas target, Rect rect) 373 public static void SubtractFromClip(this ICanvas target, RectF rect) 378 public static void SetFillPaint(this ICanvas target, Paint paint, Point point1, Point point2) 383 public static void SetFillPaint(this ICanvas target, Paint paint, PointF point1, PointF point2) 388 public static void SetFillPaint(this ICanvas target, Paint paint, Rect rectangle) 393 public static void SetFillPaint(this ICanvas target, Paint paint, RectF rectangle)
IDrawable.cs (1)
5 void Draw(ICanvas canvas, RectF dirtyRect);
ImageExtensions.cs (1)
62 public static void SetFillImage(this ICanvas canvas, IImage image)
IPattern.cs (1)
9 void Draw(ICanvas canvas);
IPicture.cs (1)
5 void Draw(ICanvas canvas);
PaintPattern.cs (1)
18 public void Draw(ICanvas canvas)
PdfExportContext.cs (1)
69 public abstract ICanvas Canvas { get; }
PicturePattern.cs (1)
17 public override void Draw(ICanvas canvas)
PlatformImage.cs (1)
172 public void Draw(ICanvas canvas, RectF dirtyRect)
ScalingCanvas.cs (3)
11 private readonly ICanvas _canvas; 18 public ScalingCanvas(ICanvas wrapped) 32 public ICanvas ParentCanvas => _canvas;
StandardPicture.cs (2)
3 public delegate void DrawingCommand(ICanvas canvas); 26 public void Draw(ICanvas canvas)
Microsoft.Maui.Graphics.Skia (4)
SKGraphicsExtensions.cs (2)
365 var canvas = context.Canvas; 382 var canvas = context.Canvas;
SkiaBitmapExportContext.cs (1)
51 public override ICanvas Canvas => _canvas;
SkiaImage.cs (1)
147 public void Draw(ICanvas canvas, RectF dirtyRect)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (1)
138 public void Draw(ICanvas canvas, RectF dirtyRect)