MobileForms Toolkit Documentation

GraphicsEx.DrawGradient Method (Graphics, GradientColor, Rectangle, Rectangle)

Draws the specified portion of the specified GradientColor at the specified location and with the specified size.

public static void DrawGradient(
Graphics gr,
GradientColor gradientColor,
Rectangle destRect,
Rectangle srcRect
);

Parameters

gr
Graphics to use.
gradientColor
A GradientColor that determines the colors and style of the gradient.
destRect
Rectangle structure that specifies the location and size of the drawn gradient.
srcRect
Rectangle structure that specifies the location and size of the gradient object to draw.

Remarks

The destRect is the portion within the srcRect of the drawn gradient. The destRect specifies the portion which is drawn from the srcRect.

See Also

GraphicsEx Class | Resco.Drawing Namespace | GraphicsEx.DrawGradient Overload List