A required color value to be set as the new background color for the viewer. Use the ARGBI method to obtain this value.
Example





In This Topic
GdPicture14 Namespace / GdViewer Class / SetBackgroundColor Method

SetBackgroundColor Method (GdViewer)

In This Topic
Sets the background color of this GdViewer control.
Syntax
'Declaration
 
Public Sub SetBackgroundColor( _
   ByVal Color As Integer _
) 
public void SetBackgroundColor( 
   int Color
)
public procedure SetBackgroundColor( 
    Color: Integer
); 
public function SetBackgroundColor( 
   Color : int
);
public: void SetBackgroundColor( 
   int Color
) 
public:
void SetBackgroundColor( 
   int Color
) 

Parameters

Color
A required color value to be set as the new background color for the viewer. Use the ARGBI method to obtain this value.
Example
How to set the new background color.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 250, 235, 215))
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(GdViewer1.ARGBI(255, 250, 235, 215));
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(Color.AntiqueWhite.ToArgb())
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.SetBackgroundColor(Color.AntiqueWhite.ToArgb());
See Also