Contents

HTMLCanvasElement

A canvas is an HTML element that defines a runtime drawing region within your web content. You can access the canvas as a JavaScript object and obtain a drawing context from it, in the form of a CanvasRenderingContext2D object. You draw on the canvas by using the JavaScript methods of the Canvasrenderingcontext2d class.

Declaration

interface HTMLCanvasElement

Overview

Topics

Setting Canvas Dimensions

Obtaining a Context

Getting an Image