Top "Canvas" questions

Canvas is a generic term for the drawing surface used with many free-form graphics output APIs.

Drawing an image from a data URL to a canvas

How can i open an image in a Canvas ? which is encoded I am using the var strDataURI = oCanvas.toDataURL(); …

image html canvas data-uri
How can I write text on a HTML5 canvas element?

Is it possible to write text on HTML5 canvas?

html canvas
How do I make a transparent canvas in html5?

How can I make a canvas transparent? I need to because I want to put two canvases on top of …

html canvas
How to resize html canvas element?

I have a canvas element defined statically in the html with a width and height. If I attempt to use …

javascript html canvas dhtml
How to draw polygons on an HTML5 canvas?

I need to know how to draw polygons on a canvas. Without using jQuery or anything like that.

javascript css html canvas
Cannot read property 'getContext' of null, using canvas

I get the error Uncaught TypeError: Cannot read property 'getContext' of null and the important parts in files are... I …

javascript html canvas
HTML5 Canvas Rotate Image

jQuery('#carregar').click(function() { var canvas = document.getElementById('canvas'); var image = document.getElementById('image'); var element = canvas.getContext("2d"); …

html image canvas rotation html5-canvas
How do I get the width and height of a HTML5 canvas?

How can i get the width and height of the canvas element in JavaScript? Also, what is the "context" of …

javascript html canvas
HTML5 Canvas Resize (Downscale) Image High Quality?

I use html5 canvas elements to resize images im my browser. It turns out that the quality is very low. …

javascript css html canvas html5-canvas
How to draw a rounded Rectangle on HTML Canvas?

I found that there are only can fill rectangle, but no rounded corner one, how can I do that?

html canvas