public static void EndPath(this Canvas2DContext context) { context.PushAction(CanvasContextAction.Call("endPath")); }
public static void SetFont(this Canvas2DContext context, string font) { context.PushAction(CanvasContextAction.Assign("font", font)); }
public static void LineTo(this Canvas2DContext context, double x, double y) { context.PushAction(CanvasContextAction.Call("lineTo", x, y)); }
public static void SetTextAlign(this Canvas2DContext context, string align) { context.PushAction(CanvasContextAction.Assign("textAlign", align)); }
public static void SetTextBaseline(this Canvas2DContext context, string baseline) { context.PushAction(CanvasContextAction.Assign("textBaseline", baseline)); }
public static void FillRect(this Canvas2DContext context, double x, double y, double width, double height) { context.PushAction(CanvasContextAction.Call("fillRect", x, y, width, height)); }
public static void StrokeText(this Canvas2DContext context, string text, double x, double y) { context.PushAction(CanvasContextAction.Call("strokeText", text, x, y)); }
/// <summary> /// Sets the type of compositing operation to apply when drawing new shapes. /// https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Compositing /// </summary> public static void SetGlobalCompositeOperation(this Canvas2DContext context, string operation) { context.PushAction(CanvasContextAction.Assign("globalCompositeOperation", operation)); }
public static void SetFillStyle(this Canvas2DContext context, string style) { context.PushAction(CanvasContextAction.Assign("fillStyle", style)); }
public static void Restore(this Canvas2DContext context) { context.PushAction(CanvasContextAction.Call("restore")); }
public static void Save(this Canvas2DContext context) { context.PushAction(CanvasContextAction.Call("save")); }
public static void Fill(this Canvas2DContext context) { context.PushAction(CanvasContextAction.Call("fill")); }