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

This function gets the four components (red, green, blue, and alpha) of the light source ambient color.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_light_get_specular(
        HIG_VECT_LIGHTSOURCE hLightSource, 
        float* lpSpecular
);

Arguments:

Name Type Description
hLightSource HIG_VECT_LIGHTSOURCE Light source handle.
lpSpecular float* Buffer for four specular color components. The component range is usually 0..1.

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