malhivertman1
Messages postés489Date d'inscriptionmardi 16 novembre 2004StatutMembreDernière intervention22 novembre 2007
-
2 nov. 2006 à 09:02
malhivertman1
Messages postés489Date d'inscriptionmardi 16 novembre 2004StatutMembreDernière intervention22 novembre 2007
-
2 nov. 2006 à 12:00
Bonjour,
J'aimerai pouvoir récupérer une image de mon disque et la mettre dans une variable de type bitmap pour ensuite pouvoir dessiner dessus en utilisant un graphics.
Mais pour le moment, quand je fais
Dim MonBitMap As New Bitmap(200, 200)
Dim MonObjGfx As Graphics
Tu peut tout simplement dessiner l'image sur le graphique :
Dim MonBitMap As System.Drawing.Image = New System.Drawing.Bitmap(200, 200)
Dim MonObjGfx As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(MonBitMap)
MonObjGfx.DrawImage(System.Drawing.Image.FromFile("monchemin\ol.gif"), System.Drawing.Point.Empty)