Private Sub Command1_Click()
With Picture1
.AutoRedraw = True
.Cls
.PaintPicture .Picture, .ScaleWidth, .ScaleTop, -1 * (.ScaleWidth), .ScaleHeight, .ScaleLeft, .ScaleTop, .ScaleWidth, .ScaleHeight, vbSrcCopy
.Picture = .Image
.AutoRedraw = False
End With
End Sub
Private Sub Command2_Click()
With Picture1
.AutoRedraw = True
.Cls
.PaintPicture .Picture, .ScaleLeft, .ScaleHeight, .ScaleWidth, -(.ScaleHeight), .ScaleLeft, .ScaleTop, .ScaleWidth, .ScaleHeight, vbSrcCopy
.Picture = .Image
.AutoRedraw = False
End With
End Sub
Private Sub Form_Load()
Picture1.Picture = LoadPicture("c:\1.jpg")
Picture1.AutoSize = True
End Sub