vb Picture1问题 20
Picture1.Picture=LoadPicture(App.Path&"1.jpg")现在要求在这张图片上覆盖半透明的黄色然后5秒钟后变成覆盖半透明红色,就这么循环...
Picture1.Picture = LoadPicture(App.Path & "1.jpg")
现在要求在这张图片上覆盖半透明的黄色然后5秒钟后变成覆盖半透明红色,就这么循环覆盖
改如何写 展开
现在要求在这张图片上覆盖半透明的黄色然后5秒钟后变成覆盖半透明红色,就这么循环覆盖
改如何写 展开
2个回答
展开全部
你需要查找调研api函数的资料,关于透明方面的,如
Private Declare Function GdiTransparentBlt Lib "gdi32" (ByVal hdc1 As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal W1 As Long, ByVal H1 As Long, ByVal Hdc2 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal W2 As Long, ByVal H2 As Long, ByVal Color As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
查找它们的用法可以实现
Private Declare Function GdiTransparentBlt Lib "gdi32" (ByVal hdc1 As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal W1 As Long, ByVal H1 As Long, ByVal Hdc2 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal W2 As Long, ByVal H2 As Long, ByVal Color As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
查找它们的用法可以实现
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询