ImageGear for C and C++ on Windows v20.1 - Updated
Gradient Functions
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Gradient Functions

This section provides information about the Gradient group of functions.

Remarks:

Gradient filling properties are encapsulated by a HIG_VECT_GRADIENT handle. This handle is attached to a HIG_VECT_FILLTYPE object.

There are two types of gradient fillings:

The color of the gradient is defined by an array of stops. A stop is a pair of offset and color. Stop offsets are relative to gradient coordinates: 0.0 corresponds to the start point; 1.0 corresponds to the end points, in case of a linear gradient, or to a point at the outer circle, in case of radial gradient. If first stop offset is greater than 0.0, or last stop offset is less than 1.0, the gradient is expanded, according to its Spread method. Gradient color is linearly interpolated between the stops.

Gradient filling can be transformed with an affine matrix.

Is this page helpful?
Yes No
Thanks for your feedback.