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

Sets parameters of the linear gradient: start and end points and the flag specifying whether they are relative or absolute.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_gradient_linear_set_vector(
        HIG_VECT_GRADIENT hGradient,
        IGVectPoint3D Pt1, 
        IGVectPoint3D Pt2,
        AT_BOOL bAbsolute
);

Arguments:

Name Type Description
hGradient HIG_VECT_GRADIENT Handle to a gradient object.
Pt1 IGVectPoint3D Start point of the linear gradient.
Pt2 IGVectPoint3D End point of the linear gradient.
bAbsolute AT_BOOL Specifies whether the start and end points are relative or absolute.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None