VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

TestPattern

D.W.  (18 Submissions)   Graphics   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Simulates an antique rolling indian-head test pattern
using the up and down movement of the mouse as a vertical
hold control. Uses StretchBlt to resize the image to
current resolution. Have fun...

API Declarations
Private Declare Function ClientToScreen Lib "user32" (ByVal hWnd As Long, lpPoint As POINTAPI) As Long
Private Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long
Private Declare Function StretchBlt Lib "gdi32" (ByVal hdc 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 nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Const SRCCOPY = &HCC0020

Rate TestPattern (3(3 Vote))

Download TestPattern

TestPattern Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters