SUPER FAST! Gradient Fills (Any Angle) (Updated)

By | 2002-06-01

(Updated – Even Faster Now) This class will fill any Form or PictureBox with a Gradient fill starting from Color1 and blending to Color2. Sure, I know you’ve seen that plenty of times, but this code allows you to select any angle 0?? to 359.99999?? and it does a perfect blend at all angles. Use any colors, even system colors. Create multiple special effects by setting PictureBoxes next to each other and filling them in different directions. Includes full source code and sample program. PLEASE VOTE FOR ME!

Original Author: Rocky Clark (Kath-Rock Software)

Inputs

Properties:
Color1 (Long)
Color2 (Long)
Angle (Single)
Draw (Method)

Returns

Draw returns True if successful

Attachments

FileUploadedSize
CODE_UPLOAD36222262000.zip9/3/2020 3:45:00 PM10746
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.