Example





In This Topic
GdPicture14.WPF Namespace / GdViewer Class / BitmapScalingMode Property

BitmapScalingMode Property

In This Topic
Defines the bitmap scaling mode used for page rendering, in other words which algorithm is used to scale bitmap images.
Syntax
'Declaration
 
Public Property BitmapScalingMode As BitmapScalingMode
public BitmapScalingMode BitmapScalingMode {get; set;}
public read-write property BitmapScalingMode: BitmapScalingMode; 
public function get,set BitmapScalingMode : BitmapScalingMode
public: __property BitmapScalingMode get_BitmapScalingMode();
public: __property void set_BitmapScalingMode( 
   BitmapScalingMode value
);
public:
property BitmapScalingMode BitmapScalingMode {
   BitmapScalingMode get();
   void set (    BitmapScalingMode value);
}

Property Value

The default value is BitmapScalingMode.HighQuality.
Example
How to change the bitmap scaling mode.
'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;
See Also