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

This function enables or disables the lighting for the specified view.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_view_lighting_enable(
   HIG_VECT_VIEW hView,
   VECT_BOOL bEnable
);

Arguments:

Name Type Description
hView HIG_VECT_VIEW Handle to the view.
bEnable VECT_BOOL Enables or disables lighting. VECT_TRUE means that lighting will be enabled.

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:

One view allows several light sources to be used. Use IG_vect_view_get_max_lights to get the maximum number of light sources that can be used for the view. Every light source has its own characteristics, such as position, direction, colors, cut-off angle, and so on. Use Light Functions to access light sources. Use IG_vect_view_get_light function to get the particular light source.