README.md

December 5, 2022 ยท View on GitHub

Reflection effect

Description

This piece of code seems to run different on various machines. I don't know why yet. But I added a better error check in it allready.

I also added a controlpanel....

I made this program to make add a waterreflection to a picture on a splash screen. I hope you like the result as much as I did :-)

To use it with your own picture just place it in the picturebox.

More Info

Submitted On2001-05-01 10:47:40
ByD. de Haas
LevelAdvanced
User Rating4.7 (14 globes from 3 users)
CompatibilityVB 6.0
CategoryGraphics
WorldVisual Basic
Archive FileReflection1196478182002.zip

API Declarations

Public Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Public Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
Public Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Public Declare Function GetObject Lib "gdi32" Alias "GetObjectA" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
Public Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Public Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
Public Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Public Declare Function PlgBlt Lib "gdi32" (ByVal hdcDest As Long, lpPoint As POINTAPI, ByVal hdcSrc As Long, ByVal nXSrc As Long, ByVal nYSrc As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hbmMask As Long, ByVal xMask As Long, ByVal yMask As Long) As Long