Example





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

PageEffect Property

In This Topic
Gets or sets the bitmap effect, which will apply to the rendered page of the document displayed in the GdViewer control.
Syntax
'Declaration
 
Public Property PageEffect As Effect
public Effect PageEffect {get; set;}
public read-write property PageEffect: Effect; 
public function get,set PageEffect : Effect
public: __property Effect* get_PageEffect();
public: __property void set_PageEffect( 
   Effect* value
);
public:
property Effect^ PageEffect {
   Effect^ get();
   void set (    Effect^ value);
}
Example
How to set the drop shadow effect for the rendered page.
'We assume that the GdViewer1 control has been properly integrated.
Dim newEffect As System.Windows.Media.Effects.DropShadowEffect = New System.Windows.Media.Effects.DropShadowEffect()
newEffect.Opacity = 0.5F
GdViewer1.PageEffect = newEffect
//We assume that the GdViewer1 control has been properly integrated.
System.Windows.Media.Effects.DropShadowEffect newEffect = New System.Windows.Media.Effects.DropShadowEffect();
newEffect.Opacity = 0.5f;
GdViewer1.PageEffect = newEffect;
See Also