ImageGear for C and C++ on Windows v21.0 - Updated
API Reference Guide / Vector Component API Reference / Vector Component Functions Reference / Light Functions / IG_vect_light_set_enabled
In This Topic
    IG_vect_light_set_enabled
    In This Topic

    This function sets the enabling state for the light source. 

    Declaration:

     
    Copy Code
    AT_ERRCOUNT ACCUAPI IG_vect_light_set_enabled(
            HIG_VECT_LIGHTSOURCE hLightSource, 
            VECT_BOOL bEnabled
    );
    

    Arguments:

    Name Type Description
    hLightSource HIG_VECT_LIGHTSOURCE Light source handle.
    bEnabled VECT_BOOL Enabling state flag to be set. VECT_FALSE means that the light source is disabled.

    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