Gradient module and sample code

By | 2002-04-19

Yes! A module that creates gradients! This BAS file will seperate a color into red, green, and blue with one sub, then create a gradient in another. This BAS allows horizontal, vertical, or circular gradients to be created for your VB projects easily! It also has a quality feature, if your gradient is particularly large. This BAS can write to any control that can be drawn on. No API! UPDATED!!! This code can now create a gradient in ANY SHAPE OR SIZE!!!!!!!!!!!! Also added in the update: Common Dialog boxes for color picking, click the from and to boxes showing the sample color to get a common dialog for the appropriate one. Also new, is the feature to save your gradient as a bitmap file!

Original Author: Michael Barnathan

Returns

The sub CreateGradient returns a gradient image on the chosen canvas(Control). The sub SeperateColors takes a control’s background color and splits it into Red, Green, And Blue components

Attachments

FileUploadedSize
CODE_UPLOAD36592272000.zip9/3/2020 3:45:00 PM3423
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.