embiem / react-canvas-draw

React Component for drawing in canvas
https://embiem.github.io/react-canvas-draw/
MIT License
892 stars 315 forks source link

Feature/export to file #78

Closed ern-arrowsmith closed 2 years ago

ern-arrowsmith commented 4 years ago

Created an API to export the canvas image to a file. Supports:

  1. Export drawing layer only with the default background colour; black
  2. Export drawing layer + background image
  3. Export drawing layer + background colour

This is based on the work previously done by user emizz (https://github.com/emizzz).

czynot commented 4 years ago

I was about to open a PR for the exact same feature right now xD. Good job mate!