by Tanner Helland (4 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(5 Votes)
This cool little program demonstrates a basic painting program as well as the hard-to-find dll call for filling a region of a picture. To use the program, all you have to do is draw a line with the left mouse button, then click with the right mouse button to fill the clicked-on area with a random color. Also, as far as I know, this may be the only VB project on the net that has the 'ExtFloodFill' dll call, so make sure to grab it!
API DeclarationsPrivate Declare Function ExtFloodFill Lib "Gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal crColor As Long, ByVal wFillType As Long) As Long
Download Ever wondered how to fill a region of a picture? (4 KB)