ImageGear for C and C++ on Windows v19.9 - Updated
IG_vect_view_get_light
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > View Functions > IG_vect_view_get_light

This function returns the handle of a light source object associated with the specified view.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_view_get_light(
   HIG_VECT_VIEW hView,
   long nLight,
   HIG_VECT_LIGHTSOURCE* lpLightSource
);

Arguments:

Name Type Description
hView HIG_VECT_VIEW Handle to the view.
nLight long Index of the light source in the view.
lpLightSource HIG_VECT_LIGHTSOURCE* Pointer to an HIG_VECT_LIGHTSOURCE variable which will receive the handle to the light source object.

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:

Vector

Remarks:

Use Light Functions to access the particular light source.

See IG_vect_view_lighting_enable for additional information.