Top "Canvas" questions

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

How to clear the canvas for redrawing

After experimenting with composite operations and drawing images on the canvas I'm now trying to remove images and compositing. How …

javascript html canvas html5-canvas composite
Capture HTML Canvas as gif/jpg/png/pdf?

Is it possible to capture or print what's displayed in an html canvas as an image or pdf? I'd like …

javascript html canvas export png
Using HTML5/Canvas/JavaScript to take in-browser screenshots

Google's "Report a Bug" or "Feedback Tool" lets you select an area of your browser window to create a screenshot …

javascript html canvas screenshot
Canvas width and height in HTML5

Is it possible to fix the width and height of an HTML5 canvas element? The usual way is the following : &…

html canvas
How To Save Canvas As An Image With canvas.toDataURL()?

I'm currently building a HTML5 web app/Phonegap native app and I can't seem to figure out how to save …

javascript html cordova canvas save
How to change the opacity (alpha, transparency) of an element in a canvas element after it has been drawn?

Using the HTML5 <canvas> element, I would like to load an image file (PNG, JPEG, etc.), draw it …

html canvas transparency opacity alpha
Resizing an image in an HTML5 canvas

I'm trying to create a thumbnail image on the client side using javascript and a canvas element, but when I …

javascript html canvas image-resizing
How do I get the coordinates of a mouse click on a canvas element?

What's the simplest way to add a click event handler to a canvas element that will return the x and …

javascript canvas
Resize image with javascript canvas (smoothly)

I'm trying to resize some images with canvas but I'm clueless on how to smoothen them. On photoshop, browsers etc.. …

javascript html image canvas html5-canvas
HTML5 Canvas 100% Width Height of Viewport?

I am trying to create a canvas element that takes up 100% of the width and height of the viewport. You …

jquery html canvas viewport