var URL = window.webkitURL || window.URL ; if ($("#rwAddImage_C_RadUploadImgfile0")[0].files[0] == undefined || $("#rwAddImage_C_RadUploadImgfile0")[0].files[0] == null) { alert('Please select image'); return; } var url = URL.createObjectURL($("#rwAddImage_C_RadUploadImgfile0")[0].files[0]); var img = new Image(); img.src = url; img.onload = function () { img_width = ($('#rwAddImage_C_txtImgWidth').val() != "" ? $('#rwAddImage_C_txtImgWidth').val() : img.width); img_height = ($('#rwAddImage_C_txtImgHeight').val() != "" ? $('#rwAddImage_C_txtImgHeight').val() : img.width); context.drawImage(img, imgPosX, imgPosY, img_width, img_height); img_update(); cPush(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)