Jpeg files
#678
Replies: 2 comments
-
The options object is the second parameter of the constructor. signaturePad = new SignaturePad(
document.getElementById('signature-pad'),
{
backgroundColor: 'rgb(255, 255, 255)'
}
); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Many thanks, Tony!
You are very kind.
Sincerely
Luca Moioli
Il giorno mar 13 dic 2022 alle ore 07:12 Tony Brix ***@***.***>
ha scritto:
… The options object is the second parameter of the constructor.
signaturePad = new SignaturePad(
document.getElementById('signature-pad'),
{
backgroundColor: 'rgb(255, 255, 255)'
});
—
Reply to this email directly, view it on GitHub
<#678 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARQOQZKOB76HZPRVNNZUXCLWNAHVNANCNFSM6AAAAAAS4YLXG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear friends,
excuse me I do not know Java, I am a Visual FoxPro developer and would like to include Signature Pad into one application.
I have this code running rightly:
` <script>
$(document).ready(function () {
var signaturePad = new SignaturePad(document.getElementById('signature-pad'));
`
This saves Png files.
Now I need to save Jpeg files, I did read documentation and tried this code, but unfortunately it creates black images:
`
<script> $(document).ready(function () { var signaturePad = new SignaturePad(document.getElementById('signature-pad')); canvas,{backgroundColor: 'rgb(255, 255, 255)'}; $('#wwWebPanel1_Ok').click(function () { var data = signaturePad.toDataURL('image/jpeg'); $('#txtFirma').val(data); }); }) </script>`
Please how is the right code?
Thank you very much for support
Beta Was this translation helpful? Give feedback.
All reactions