Zakaria
Zakaria

Reputation: 73

Save android canvas as svg

I am trying to make a signature pad for android and the output should be svg. I am using this library now: https://github.com/gcacace/android-signaturepad Alternately, I can use canvas. But the major issue is converting it into svg. Is there any way to do that?

Upvotes: 2

Views: 884

Answers (1)

GianluKa
GianluKa

Reputation: 83

You could change the implementation of SignaturePad class, generating a SVG path from the mPoints array and apply a Bezier transformation to the path itself: http://www.sitepoint.com/html5-svg-cubic-curves/.

Anyway, if you send me a pull request I'll be happy to include that new feature into the library.

Upvotes: 1

Related Questions