probiers mal damit...
picSource enthält das bild und kann ruhig invisible sein...
|
Code source
|
1
2
3
4
5
6
7
8
9
10
11
|
Private Sub ZoomSub(ByVal Prozent)
Dim dx1&, dy1&, dx2&, dy2&
dx1 = picSource.Width
dy1 = picSource.Height
dx2 = dx1 * Prozent / 100
dy2 = dy1 * Prozent / 100
picZoom.PaintPicture picSource, 0, 0, dx2, dy2
End Sub
|
hab aber keine ahnung ob die verkrüppelte vba-picturebox die paintpicture-methode noch kennt...