public static void Clear(this Canvas2DContext context, string style = "transparent") { context.Save(); context.SetGlobalCompositeOperation("copy"); context.SetStrokeStyle(style); context.BeginPath(); context.LineTo(0, 0); context.Stroke(); context.Restore(); }