by John (4 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(5 Votes)
FlexZoom is a simple program to stretch or compress a bitmap to fit the dimensions of a destination rectangle. The destination and the source can be the same picture box as example one will show you. A shape control and various mouse events are used to frame the area being zoomed.
API DeclarationsPublic 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
Upload