首页/技术开发/内容

雨滴式的显示图片

技术开发2024-06-07 阅读()
'将Picture1的BitMap图指定给hMemDc

Call SelectObject(hMemDc, Picture1.Handle)

For i = height5 To 1 Step -1

Call BitBlt(Picture2.hdc, 0, i, width5, 1, _

hMemDc, 0, i, SRCCOPY)

For j = i - 1 To 1 Step -1

Call BitBlt(Picture2.hdc, 0, j, width5, 1, _

hMemDc, 0, i, SRCCOPY)

Next j

Next

Call DeleteDC(hMemDc)

End Sub


Private Sub Form_Load()

Dim i As Long

Picture2.ScaleMode = 3 '设定成Pixel的度量单位

'设定待Display的图

Set Picture1 = LoadPicture("c:\windows\aaa.bmp")

' ^^^^^^^^^^^^^^^^^^^^^^

' Load the picture we want to show

End Sub


第1页  第2页 

……

相关阅读