by Jim Sky (1 Submission)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)
This is a demo to help sort out some the confusion about Image and Picture properties of a Picture control. I have been programming in VB for years and sometimes still get a bit confused about these so I wrote this to help myself as a reference, and thought perhaps some others might benefit. Also shows simplest usage of the BitBlt API function.
Assumes
Check the code for comments.
API DeclarationsDeclare 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