Javascript Example save as JPEG

Example requests & Code samples for GdPicture Toolkits.
Post Reply
miraca2014
Posts: 4
Joined: Mon Jun 02, 2014 5:32 pm

Javascript Example save as JPEG

Post by miraca2014 » 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.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Javascript Example save as JPEG

Post by Loïc » Tue Jun 03, 2014 10:38 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests