'We assume that the GdViewer1 control has been properly integrated.
If GdViewer1.DisplayFromFile("") = GdPictureStatus.OK Then
Dim rotation As RotateFlipType = RotateFlipType.Rotate180FlipNone
If GdViewer1.Rotate(rotation) = GdPictureStatus.OK Then
MessageBox.Show("The current page is rotated: " + GdViewer1.PageRotation.ToString(), "GdViewer.PageRotation");
Else
MessageBox.Show("The current page can't be rotated. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.PageRotation")
End If
Else
MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.PageRotation")
End If
//We assume that the GdViewer1 control has been properly integrated.
if (GdViewer1.DisplayFromFile("") == GdPictureStatus.OK)
{
RotateFlipType rotation = RotateFlipType.Rotate180FlipNone;
if (GdViewer1.Rotate(rotation) = GdPictureStatus.OK)
MessageBox.Show("The current page is rotated: " + GdViewer1.PageRotation.ToString(), "GdViewer.PageRotation");
else
MessageBox.Show("The current page can't be rotated. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.PageRotation");
}
else
MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.PageRotation");