'Declaration
Public Property DisplayQualityAuto As Boolean
public bool DisplayQualityAuto {get; set;}
public read-write property DisplayQualityAuto: Boolean;
public function get,set DisplayQualityAuto : boolean
If you turn off the automatic level of displaying quality by setting this property to false, the previously defined value of the DisplayQuality property other than automatic is used.
'Declaration
Public Property DisplayQualityAuto As Boolean
public bool DisplayQualityAuto {get; set;}
public read-write property DisplayQualityAuto: Boolean;
public function get,set DisplayQualityAuto : boolean
'We assume that the GdViewer1 control has been properly integrated 'and your document has been properly displayed as well. 'Without changing the default settings. MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto") GdViewer1.DisplayQualityAuto = False MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto") GdViewer1.DisplayQualityAuto = True MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto") 'Setting some custom value. GdViewer1.DisplayQuality = DisplayQuality.DisplayQualityBilinearHQ MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto") GdViewer1.DisplayQualityAuto = True MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto") GdViewer1.DisplayQualityAuto = False MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto") 'Changing to the automatic level directly. GdViewer1.DisplayQuality = DisplayQuality.DisplayQualityAutomatic MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto") 'Turning off the automatic level. GdViewer1.DisplayQualityAuto = False MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto")
//We assume that the GdViewer1 control has been properly integrated //and your document has been properly displayed as well. //Without changing the default settings. MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto"); GdViewer1.DisplayQualityAuto = false; MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto"); GdViewer1.DisplayQualityAuto = true; MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto"); //Setting some custom value. GdViewer1.DisplayQuality = DisplayQuality.DisplayQualityBilinearHQ; MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto"); GdViewer1.DisplayQualityAuto = true; MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto"); GdViewer1.DisplayQualityAuto = false; MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto"); //Changing to the automatic level directly. GdViewer1.DisplayQuality = DisplayQuality.DisplayQualityAutomatic; MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto"); //Turning off the automatic level. GdViewer1.DisplayQualityAuto = false; MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQualityAuto");