cs_fcolo
Messages postés201Date d'inscriptionmercredi 8 février 2006StatutMembreDernière intervention20 février 2007
-
19 oct. 2006 à 14:08
cs_fcolo
Messages postés201Date d'inscriptionmercredi 8 février 2006StatutMembreDernière intervention20 février 2007
-
19 oct. 2006 à 14:22
Bonjour,
Je souhaiterai créer un live une icone représantant un rond plein.
J'arrive à créer un rond, mais je ne sasi pas comment remplir l'intérieur.
Je fais ca actuellement:
public Icon CreerRond(Pen myPen,
int width,
int height)
{
Bitmap bitmap =
new Bitmap(width, height);
Graphics graph = Graphics.FromImage(bitmap);
graph.DrawEllipse(myPen,0,0,width,height);
graph.Flush();
return Icon.FromHandle(
new Bitmap(bitmap).GetHicon());
}