Gobillot
Messages postés
3140
Date d'inscription
vendredi 14 mai 2004
Statut
Membre
Dernière intervention
11 mars 2019
34
2 mai 2005 à 18:53
Dim pic As Picture
Dim W As Long
Dim H As Long
Set pic = LoadPicture("C:\IMAGES\logovb3.bmp")
W = ScaleX(pic.Width, vbHimetric, vbTwips)
H = ScaleY(pic.Height, vbHimetric, vbTwips)
Picture1.Width = W * 2
Picture1.Height = H * 2
DoEvents
Picture1.PaintPicture pic, 0, 0, W, H, 0, 0, W, H
Picture1.PaintPicture pic, W, 0, W, H, 0, 0, W, H
Picture1.PaintPicture pic, 0, H, W, H, 0, 0, W, H
Picture1.PaintPicture pic, W, H, W, H, 0, 0, W, H
SavePicture Picture1.Image(FileName)
Daniel