Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

Renderer (canvas) to image?

$
0
0

Hello!

 

I have a simple question:

How to save the renderer as an image?

 

I tried canvas.toDataURL() method:

 

canvas = $('#gamearea canvas').get(0);image = canvas.toDataURL("image/png", 1);

But the result is a black rectangle and this size same as canvas size not the full renderer size.

Can somebody please help me out?


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>