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