A
A
Andrey Savrasov2013-11-21 13:24:06
JavaScript
Andrey Savrasov, 2013-11-21 13:24:06

How to get a complete copy of the canvas window as an image in fabric.js?

Displaying the contents of the canvas window in the fabric.js library occurs using the function
var dataURL = canvas.toDataURL();
This function displays only objects, without the background set by the function setOverlayImage
How to get images with a foreground. Those. a complete copy of the canvas window as an image.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Savrasov, 2013-11-21
@alcorn

The solution was to update the fabric.js library

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question