Link to home
Start Free TrialLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

jsignature c# convert to png

i use below code to download jsignature to svg 64 and it works to me. but how can convert to string to png in c#?



<script src="../Scripts/jquery-3.1.1.min.js"></script>
    <script src="../libs/flashcanvas.js"></script>
    <script src="../libs/jSignature.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#signature").jSignature({ width: 650, height: 250 });
        });
         function GetData() {
            var $sigdiv = $("#signature");
            var datapair = $sigdiv.jSignature("getData", "svgbase64")
            var image = document.getElementById("Image1");
            image.src = "data:" + datapair[0] + "," + datapair[1]
               }
    </script>

   <div id="signature"></div>
          <input id="Button2" type="button" value="GetData" onclick="GetData()" />
        <hr />

        <asp:Image ID="Image1" runat="server" />

Open in new window

Avatar of ITsolutionWizard
ITsolutionWizard
Flag of United States of America image

ASKER

Any helps!?
Avatar of Misha
Please, specify what do you want to convert? what type and what value?
Convert from svg 64 to png
ASKER CERTIFIED SOLUTION
Avatar of Misha
Misha
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There is no activity from author