Drawimage

The drawImage() method draws an image, canvas, or video onto the canvas

Putimagedata

The putImageData() is a method of the HTML5 Canvas, and is used to place new image data onto an existing image.



Old browser earlier

Example

"The only problem that as far as i know using drawimage is slower than using putimagedata and it was required in old browser versions like firefox 2 or such"

from question  

Upscaling canvas data as fast as possible

"That beeing said putimagedata is much slower than drawimage at least when i tested them earlier this year"

from question  

Use Web Worker to getImageData from a file

Use getimagedata othercanvas

Example

"If this is the case definitely just use drawimage othercanvas x y instead of using getimagedata and putimagedata if possible;using drawimage is far faster"

from question  

PutImageData() on rotated canvas work incorrect

"Don t use getimagedata putimagedata for clipping since drawimage is easier and faster."

from question  

Animating / Move canvas image that has been placed by putImageData

Clipping version function

Example

"Right now putimagedata is much slower than drawimage as you can see here"

from question  

Canvas vs Image for faux video player

"Using the clipping version of drawimage will be faster than putimagedata"

from question  

Canvas: Draw image pixel by pixel and requestAnimationFrame timing

"I have seen that the drawimage function is really faster than the putimagedata"

from question  

Optimizing setting of pixels in HTML5 canvas

"Using drawimage canvas is much faster than using putimagedata"

from question  

How to replace getImageData & putImageData for better performance?

"Drawimage seems to be much faster than putimagedata"

from question  

Speeding up pixel manipulation in html5 canvas

"As of right now drawimage is much faster than putimagedata"

from question  

Is putImageData faster than drawImage?

Others

Example

That way you can just drawimage the offscreen canvas to the onscreen canvas--efficient because the gpu can do the blitting instead of burdening the cpu;putimagedata is slower because it involves the cpu fetching data from the pixel array setting that data in your temp array and transferring the temp array to the onscreen imagedata

from question  

What is the best way, to draw a part of an arraybuffer to the canvas?

Is putimagedata ... more performant than drawimage ...

from question  

In cocoonjs Which one of these methods give most performance for canvas

If you get curious and discover the putimagedata function in the canvas 2d api please note that drawimage is much faster which might be unintuitive

from question  

* (no title is found for this review)

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0