Bonjour !

Je n'arrive pas à convertir ce bout de code que j'ai trouvé sur la toile.
Ce code doit permettre de réaliser un dégradé radial. Je voudrais l'équivalent en VB.NET svp.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
GraphicsPath path = new GraphicsPath();  
path.AddEllipse(0, 0, 198, 198);  
g.DrawPath(pen, path);    
PathGradientBrush pathGradient = new PathGradientBrush(path);    
pathGradient.CenterColor = System.Drawing.Color.Gold;  
Color[] surroundingColors = {System.Drawing.Color.CadetBlue};    
pathGradient.SurroundColors = surroundingColors;    
g.FillPath(pathGradient, path);
Please help !
D'avance, merci.