VB.Net Dessiner dans un PictureBox (fonction RectangleF)
cs_JeffC1977
Messages postés928Date d'inscriptionvendredi 10 novembre 2000StatutMembreDernière intervention23 septembre 2023
-
11 sept. 2007 à 14:02
cs_JeffC1977
Messages postés928Date d'inscriptionvendredi 10 novembre 2000StatutMembreDernière intervention23 septembre 2023
-
11 sept. 2007 à 18:36
Salut j'ai un problème pour dessiner des points dans un PictureBox et avec la fonction RectangleF.
Je ne peux utiliser la fonction Rectangle (ca donne des Integer) je dois absolument utiliser la fonction RectangleF, qui donne des Single.
Stéphanne33 m'a dit:
Au niveau précision c'est clair, mais là pour ta représentation graphique, soit tu fais du Plein avec Rectangle, soit tu fais vide avec RectangleF et DrawEllipse
Daccord, mais je ne saisi pas comment faire pour régler mon problème...
Si quelqu'un peut modifier le code afin que ca fonctionne...
New
RectangleF(CoordX, CoordY, 10, 10)
objGraphics.FillEllipse(MaBrush, MonRectableF ) 'Erreur = Value of type 'System.Drawing.RectangleF' cannot be converted to 'System.Drawing.Rectangle'
Next
i
Me
.PictureBox1.Image = objBitMap
objGraphics.Dispose()
objGraphics =