'We assume that the GdViewer1 control has been properly integrated.
'Determine the current bitmap scaling mode.
MessageBox.Show("The current bitmap scaling mode is " + GdViewer1.BitmapScalingMode.ToString() + ".", "GdViewer.BitmapScalingMode")
'Set the required bitmap scaling mode.
GdViewer1.BitmapScalingMode = BitmapScalingMode.Linear
//We assume that the GdViewer1 control has been properly integrated.
//Determine the current bitmap scaling mode.
MessageBox.Show("The current bitmap scaling mode is " + GdViewer1.BitmapScalingMode.ToString() + ".", "GdViewer.BitmapScalingMode");
//Set the required bitmap scaling mode.
GdViewer1.BitmapScalingMode = BitmapScalingMode.Linear;