2016-10-13 3 views

Antwort

0

Ich habe mein Problem wie folgt bestimmt:

1) Ich habe meine Leinwand zu base64 gespeichert

2) Ich habe meine gespeicherten Leinwand (base64) als Hintergrund für fabricjs Leinwand gesetzt

Mein Code (coffeescript):

gridImageFromCanvas = @canvas.toDataURL() 
backgroundImage = new Image() 
backgroundImage.onload = => 
    fabricaBackgroundImage = new fabric.Image(backgroundImage) 
    @canvasFabric.setBackgroundImage(fabricaBackgroundImage) 
    @canvasFabric.renderAll() 
backgroundImage.src = gridImageFromCanvas 
Verwandte Themen