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

Gets start and end points of the linear gradient and a flag specifying whether they are relative or absolute.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_gradient_linear_get_vector(
        HIG_VECT_GRADIENT hGradient,
        IGVectPoint3D* lpPt1, 
        IGVectPoint3D* lpPt2, 
        AT_BOOL* lpbAbsolute
);

Arguments:

Name Type Description
hGradient HIG_VECT_GRADIENT Handle to a gradient object.
lpPt1 IGVectPoint3D* Returns start point of the linear gradient.
lpPt2 IGVectPoint3D* Returns end point of the linear gradient.
lpbAbsolute AT_BOOL* Returns the flag specifying 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