SSGradient DLL
Currently has a function for Gradient Rectangles, Diagonal Gradients and RGB(Only needed in VDS).
Updated: 10/19/03 - Added an example which shows all gradient styles and got rid of individual examples.
Updated: 10/19/03 - Fixed a bug in the DLL that wasn't setting the width and height correctly. Width and Height params were actually being used as Right and Bottom end points.
Updated: 10/18/03 - Added SSGradientDiag Function.
Download:
SSGradientDLL.zip - DLL with IBasic and VDS(using vdsug.dll by Mac) Examples.
SSGradientRect:
Params:
hwnd = Window/Dialog ID.
left = Left position to start rectangle at.
top = Top position to start rectangle at.
width = Width of rectangle.
height = Height of rectangle.
color1 = Left/Top(depending on style) color using RGB() (or SSRGB).
color2 = Right/Bottom(depending on style) color using RGB() (or SSRGB).
style = 0 for Horizontal Gradient, 1 for Vertical.
Returns:
1 if GradientFill succeeded, 0 if it failed.
SSGradientDiag: Screenshot
Params:
hwnd = Window/Dialog ID.
left = Left position to start rectangle at.
top = Top position to start rectangle at.
width = Width of rectangle.
height = Height of rectangle.
color1 = Inside Color using RGB() (or SSRGB).
color2 = Outside Color using RGB() (or SSRGB).
style = 0 for Top-Left to Bottom-Right, 1 for Bottom-Left to Top-Right.
Returns:
1 if GradientFill succeeded, 0 if it failed.
SSRGB:
Params:
red = Red saturation(0 through 255)
green = Green saturation(0 through 255)
blue = Blue saturation(0 through 255)
Returns:
An INT representing an RGB value.