Control Signature There are no items to choose from. Select us. Select Button to pass.
Q1
-----
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@Html.EJ().Signature("mySignature").Height("400px").StrokeWidth(3).IsResponsive(true).saveWithBackground(true).IsResponsive(true).StrokeColor("blue").BackgroundColor("grey")
@Html.EJ().Button("signSave").Text("Save").ShowRoundedCorner(true).ClientSideEvents(e => e.Click("onSave"))
@Html.EJ().Button("signClear").Text("Clear").ShowRoundedCorner(true).ClientSideEvents(e => e.Click("onClear"))
We added the script but the website deleted it.
We therefore attach it as a picture.
function onSave() {
var sign = $("#mySignature").ejSignature("instance");
sign.option("saveImageFormat", "png")
sign.save("mySignature");
}
function onClear() {
var sign = $("#mySignature").ejSignature("instance");
sign.clear();
}
function onSave() {
var sign = $("#mySignature").ejSignature("instance");
sign.option("saveImageFormat", "png")
sign.save("mySignature");
}
function onClear() {
var sign = $("#mySignature").ejSignature("instance");
sign.clear();
}
--------------------------------------------
Q2
---
function onSave() {
Can set the image size, save time such as 250 * 250 pixel
And set the image to store the background as transparent
Ask for advice.
Thank you very much for the advice.
Attachment:
Capture_error_772606b.zip