Javascript Example save as JPEG
Posted: Mon Jun 02, 2014 5:40 pm
Hi,
I am using GDPicture to capture image from microscope and I want it to be saved as JPEG instead of PDF or TIFF. Currently I am using methods from your example
function saveAsPDF(path) {
var oGdViewer = document.getElementById("GdViewer1");
var status = oGdViewer.SaveAsPDF(path);
if (status == 0) {
}
else {
alert("error saving file: " + path + ". status: " + status);
}
}
I want to save the image as JPEG and use it further. Please provide some code samples using javascript.
I am using GDPicture to capture image from microscope and I want it to be saved as JPEG instead of PDF or TIFF. Currently I am using methods from your example
function saveAsPDF(path) {
var oGdViewer = document.getElementById("GdViewer1");
var status = oGdViewer.SaveAsPDF(path);
if (status == 0) {
}
else {
alert("error saving file: " + path + ". status: " + status);
}
}
I want to save the image as JPEG and use it further. Please provide some code samples using javascript.