GradientFill(StartColor, EndColor, Direction, Colors)
Fills the graphic with a gradient of colors.
Parameters
- StartColor. Specifies the initial color of the gradient. This parameter accepts a WideString value.
- EndColor. Specifies the end color of the gradient. This parameter accepts a WideString value.
- Direction. Specifies the direction in which the gradient color changes. This parameter can take one of the following WideString values:
- TopToBottom
- BottomToTop
- LeftToRight
- RightToLeft
- TopToBottom
- Colors. Specifies color depth (or bit depth) of the gradient. This parameter can take an integer value. The default value is 64 (64-bit). Gradients usually look better in 24-bit JPEG images, as the colors that can be used with GIFs are more limiting.
Examples
Copy
Graphic.GradientFill('Yellow','White','LeftToRight');
Copy
Graphic.GradientFill('Blue','White','TopToBottom',256);