// canvas.toDataURL("image/jpeg", 0.92)
https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL
// in the case of CanvasSnapshot,just adding the type and encoderOptions and passing toDataURL would be enough
var CanvasSnapshot = function (canvas, type, encoderOptions)
{
type = type || 'image/png'
var src = canvas.toDataURL(type, encoderOptions
);
.....
--
You received this message because you are subscribed to the Google Groups "Phaser 3 Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phaser3-dev+unsubscribe@googlegroups.com.
To post to this group, send email to phase...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/phaser3-dev/652a39db-5a2d-4f05-9f25-e060f238d4b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to phaser3-dev...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to phaser3-dev+unsubscribe@googlegroups.com.
To post to this group, send email to phase...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/phaser3-dev/e4d1d810-41cd-4abc-8a3b-4df31cfe7e94%40googlegroups.com.