Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148177 | Oct 9,2019 09:40 AM UTC | Oct 10,2019 09:58 AM UTC | ASP.NET Core | 1 |
![]() |
Tags: Signature |
<div id="signature">
</div>
<script>
$(function () {
// declaration
$("#signature").ejSignature({ height: "400px", isResponsive: true, strokeWidth: 3, width: "600px" });
var obj = $("#signature").ejSignature("instance"); // Create object for signature control
canvas = obj._canvas[0];
context = canvas.getContext("2d");
var img = new Image;
img.src = "../Images/Signature.png"; //specify image source
context.clearRect(0, 0, canvas.width, canvas.height); // Clear specified pixel
img.onload = function () {
context.drawImage(img, 0, 0);
}
obj.refresh();
});
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.