'Declaration
Public Property ViewRotation As RotateFlipType
public RotateFlipType ViewRotation {get; set;}
public read-write property ViewRotation: RotateFlipType;
public function get,set ViewRotation : RotateFlipType
This property specifies how the view is rotated and flipped in the GdViewer control when displaying the page.
'Declaration
Public Property ViewRotation As RotateFlipType
public RotateFlipType ViewRotation {get; set;}
public read-write property ViewRotation: RotateFlipType;
public function get,set ViewRotation : RotateFlipType
'We assume that the GdViewer1 control has been properly integrated. If GdViewer1.DisplayFromFile("") = GdPictureStatus.OK Then Dim rotation As RotateFlipType = RotateFlipType.Rotate180FlipNone If GdViewer1.RotateView(rotation) = GdPictureStatus.OK Then MessageBox.Show("The view is rotated: " + GdViewer1.ViewRotation.ToString(), "GdViewer.ViewRotation"); Else MessageBox.Show("The view can't be rotated. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.ViewRotation") End If Else MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.ViewRotation") End If
//We assume that the GdViewer1 control has been properly integrated. if (GdViewer1.DisplayFromFile("") == GdPictureStatus.OK) { RotateFlipType rotation = RotateFlipType.Rotate180FlipNone; if (GdViewer1.RotateView(rotation) = GdPictureStatus.OK) MessageBox.Show("The view is rotated: " + GdViewer1.ViewRotation.ToString(), "GdViewer.ViewRotation"); else MessageBox.Show("The view can't be rotated. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.ViewRotation"); } else MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.ViewRotation");