Page 1 of 1

Javascript Example save as JPEG

Posted: Mon Jun 02, 2014 5:40 pm
by miraca2014
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.

Re: Javascript Example save as JPEG

Posted: Tue Jun 03, 2014 10:38 pm
by Loïc
Hi,

As far as I know SaveAsPDF() is not a method of the GdViewer class.
Which version of GdPicture.NET are you using?

That said, I think you should really consider to check into the reference guide of your edition, if you have a SaveAsPDF() method you have also probably a SaveAsJPEG() method...

With best regards,

Loïc