Applying a RadialGradientBrush
The RadialGradientBrush
brush works exactly like the LinearGradientBrush
, except that it creates a circular gradient. The following code shows how it is possible to apply such a brush to an Ellipse
:
You are not limited to the Ellipse
shape, but for demo purposes it is the one that best fits the example. Figure 33.3 shows the result of the brush applied.
The Visual Basic code for applying the brush at runtime is similar to the one for the linear gradient. The following ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.