VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Lens (Update 1)

Scythe  (20 Submissions)   Graphics   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Creates a Lens effect like u know from some demos or the windows screensavers. think this is the fastest way to do this in VB. Runs smooth on my 333MHz PC. NEW Lens Calculation is faster (thx to Carles P.V.) and some errors fixed (Thx to Robert Rayment)

API Declarations
Private Declare Function GetDIBits Lib "gdi32" (ByVal aHDC As Long, ByVal hBitmap As Long, ByVal nStartScan As Long, ByVal nNumScans As Long, lpBits As Any, lpBI As BITMAPINFO, ByVal wUsage As Long) As Long
Private Declare Function SetDIBits Lib "gdi32" (ByVal hdc As Long, ByVal hBitmap As Long, ByVal nStartScan As Long, ByVal nNumScans As Long, lpBits As Any, lpBI As BITMAPINFO, ByVal wUsage As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

Rate Lens (Update 1) (12(12 Vote))

Download Lens (Update 1)

Lens (Update 1) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters