Top "Canvas" questions

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

Save canvas as jpg to desktop

I am trying to save an image (JPEG) to the desktop from an HTML5canvas. I can open in a …

javascript html canvas html5-canvas
Maximum size of a <canvas> element

I'm working with a canvas element with a height of 600 to 1000 pixels and a width of several tens or hundreds …

javascript html canvas
How to add labels into Chart.js canvas plugin?

I'm using the awesome plugin Chart.js, and I'm trying to find the way of display labels within each percentage. …

jquery css canvas charts chart.js
Downloading Canvas element to an image

What are the different ways to save a canvas object? In my research, I've found two approaches: var data = canvas.…

javascript canvas download
Resize a Base-64 image in JavaScript without using canvas

I need a way to resize pictures in JavaScript without using a HTML element. My mobile HTML app captures photos …

javascript canvas resize html5-canvas base64
How can I draw an image from the HTML5 File API on Canvas?

I would like to draw an image opened with the HTML5 File API on a canvas. In the handleFiles(e) …

javascript canvas drawimage fileapi
Canvas is stretched when using CSS but normal with "width" / "height" properties

I have 2 canvases, one uses HTML attributes width and height to size it, the other uses CSS: <canvas id="…

css html canvas height width
How can I use custom fonts in an HTML5 Canvas element?

I've looked at things like Cufon and typeface.js but they seem to be SIFR alternatives and don't allow you …

html canvas fonts cufon typeface.js
Chart area background color chartjs

I have problem with chart js, i want to coloring chart area like image above I try to find configuration …

javascript jquery canvas html5-canvas chart.js
How do I style HTML5 canvas text to be bold and/or italic?

I'm printing text to a canvas in a pretty straight forward way: var ctx = canvas.getContext('2d'); ctx.font = "10…

javascript html canvas typography