VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Reflection(3) Demo

by D. de Haas (4 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

A few days ago I posted this program, but it didn't seemed to work on various machines. I made some changes to fix that problem. I tested the compiled version on Win98, WinME and Win2000 without any problems.
The program takes a picture from a picturebox and adds a reflection effect to it. To use it...just change the picture. Enjoy...!
Thanks to all who gave feedback on the previous version.

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

Rate Reflection(3) Demo

Upload

Download this snippet    Add to My Saved Code

Reflection(3) Demo Comments

No comments have been posted about Reflection(3) Demo. Why not be the first to post a comment about Reflection(3) Demo.

Post your comment

Subject:
Message:
0/1000 characters