Private Declare Function SetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
Private Sub Command1_Click()
Picture1.AutoRedraw = True
Dim i As Long
For i = 1 To 100
SetPixel Picture1.hdc, i, i, vbRed
Next
Picture1.Refresh
SavePicture Picture1.Image, "d:\nnnmmmm.bmp"
End Sub