bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

Saving to an Imge file (byte array) #210

Open warwickfoster opened 5 years ago

warwickfoster commented 5 years ago

Hi folks,

Can the guage be saved to an image file or a byte array. Would like to use it as a static image and not an aminated one.

Thanks

Appreciate your work.

NicFragale commented 5 years ago

Might you be looking for this built-in? https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL

warwickfoster commented 5 years ago

Thanks Nic I'll give it a go