GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / DisplayQuality Property
Example





In This Topic
DisplayQuality Property (GdViewer)
In This Topic
Specifies the level of displaying quality according to the used algorithm when manipulating with images.

If you turn off the automatic level of displaying quality using the DisplayQualityAuto property, then the previously defined value of this property other than automatic is used.

Syntax
'Declaration
 
Public Property DisplayQuality As DisplayQuality
public DisplayQuality DisplayQuality {get; set;}
public read-write property DisplayQuality: DisplayQuality; 
public function get,set DisplayQuality : DisplayQuality
public: __property DisplayQuality get_DisplayQuality();
public: __property void set_DisplayQuality( 
   DisplayQuality value
);
public:
property DisplayQuality DisplayQuality {
   DisplayQuality get();
   void set (    DisplayQuality value);
}

Property Value

The default value is DisplayQuality.DisplayQualityAutomatic.
Remarks
Just to inform you, that the initial value (initially set by the toolkit) of this property is DisplayQuality.DisplayQualityBicubicHQ if the automatic level is turned off without previously changing the value of this property. For more details please refer to the attached example below.
Example
How to utilize this property in your GdViewer control.
'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.DisplayQuality")
GdViewer1.DisplayQualityAuto = False
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality")
GdViewer1.DisplayQualityAuto = True
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality")
            
'Setting some custom value.
GdViewer1.DisplayQuality = DisplayQuality.DisplayQualityBilinearHQ
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality")
GdViewer1.DisplayQualityAuto = True
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality")
GdViewer1.DisplayQualityAuto = False
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality")
            
'Changing to the automatic level directly.
GdViewer1.DisplayQuality = DisplayQuality.DisplayQualityAutomatic
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality")
'Turning off the automatic level.
GdViewer1.DisplayQualityAuto = False
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality")
//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.DisplayQuality");
GdViewer1.DisplayQualityAuto = false;
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality");
GdViewer1.DisplayQualityAuto = true;
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality");
            
//Setting some custom value.
GdViewer1.DisplayQuality = DisplayQuality.DisplayQualityBilinearHQ;
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality");
GdViewer1.DisplayQualityAuto = true;
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality");
GdViewer1.DisplayQualityAuto = false;
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality");
            
//Changing to the automatic level directly.
GdViewer1.DisplayQuality = DisplayQuality.DisplayQualityAutomatic;
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality");
//Turning off the automatic level.
GdViewer1.DisplayQualityAuto = false;
MessageBox.Show("DisplayQuality = " + GdViewer1.DisplayQuality.ToString(), "GdViewer.DisplayQuality");
See Also