We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to manipulate the degree of transparency (alpha blending) in the Gradient Panel?

You can change the alpha blending. The alpha parameter of the BrushInfo controls the gradient brush transitions between the start and the end colors.

Refer to the following code examples.

C#

 

VB

 

C:\Users\giftline.jebamani\Desktop\img.jpgNote: By using the BrushInfo class, you can specify the Gradient style and other style based on your requirement. For example, the Gradient style can be specified as Vertical, Horizontal, PathEllipse, PathRectangle, Forward Diagonal and BackwardDiagonal.

 

Figure 1: Default back color of the Gradient panel.

Figure 2:Gradient panel is partially transparent with blue color in the vertical Gradient style.

Figure 3: Gradient panel is 50 % transparent with blue color in the vertical Gradient style.

Figure 4: Gradient panel is fully transparent with blue color in the vertical Gradient style.

 

Sample Links:

C#: GradientPanel_C#

VB: GradientPanel_VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
1612 04/30/2011 08/10/2015 Windows Forms GradientPanel
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.