HBCMS更多的中文手册参考:

addAmbient Method

DHTML文档教程

Adds an ambient light to the light filter.

dhtml语法

object.filters.item(
    "dximagetransform.microsoft.light").addambient(ired, igreen, iblue, istrength)

parameters

iRed Required. Integerthat specifies the red value. The value can range from 0 (lowest saturation) to 255 (highest saturation).
iGreen Required. Integerthat specifies the green value. The value can range from 0 (lowest saturation) to 255 (highest saturation).
iBlue Required. Integerthat specifies the blue value. The value can range from 0 (lowest saturation) to 255 (highest saturation).
iStrength Required. Integerthat specifies the intensity of the light filter. The value can range from 0 (lowest intensity) to 100 (highest intensity). The intensity specified pertains to the target coordinates.

Return Value

No return value.

Remarks

Ambient light is nondirectional and sheds parallel beams perpendicular to the surface of the page. Ambient light has color and strength values that add more color to the object; it is often used with other lights.

Applies To

Light