'We assume that the GdViewer1 control has been properly integrated.
If GdViewer1.DisplayFromFile("myimage.jpg") = GdPictureStatus.OK Then
'Annotate your document.
If GdViewer1.BurnAnnotationsToPage(True) = GdPictureStatus.OK Then
If GdViewer1.SaveDocumentToJPEG("myimage.jpg", 75) = GdPictureStatus.OK Then
MessageBox.Show("Done!", "GdViewer.SaveDocumentToJPEG")
Else
MessageBox.Show("The file can't be saved. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.SaveDocumentToJPEG")
End If
Else
MessageBox.Show("Annotations can't be burned. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.SaveDocumentToJPEG")
End If
Else
MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.SaveDocumentToJPEG")
//We assume that the GdViewer1 control has been properly integrated.
if (GdViewer1.DisplayFromFile("myimage.jpg") == GdPictureStatus.OK)
{
//Annotate your document.
if (GdViewer1.BurnAnnotationsToPage(true) == GdPictureStatus.OK)
{
if (GdViewer1.SaveDocumentToJPEG("myimage.jpg", 75) == GdPictureStatus.OK)
MessageBox.Show("Done!", "GdViewer.SaveDocumentToJPEG");
else
MessageBox.Show("The file can't be saved. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.SaveDocumentToJPEG");
}
else
MessageBox.Show("Annotations can't be burned. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.SaveDocumentToJPEG");
}
else
MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.SaveDocumentToJPEG");