HBCMS更多的中文手册参考:

addCone Method

DHTML文档教程

Adds a cone light to the light filter effect object to cast a directional light on the page.

dhtml语法

object.filters.item(
    "dximagetransform.microsoft.light").addcone(ix1, iy1, iz1, ix2, iy2, ired, igreen, iblue, istrength, ispread)

parameters

iX1 Required. Integerthat specifies the left coordinate of the light source.
iY1 Required. Integerthat specifies the top coordinate of the light source.
iZ1 Required. Integerthat specifies the z-axis level of the light source.
iX2 Required. Integerthat specifies the left coordinate of the target light focus.
iY2 Required. Integerthat specifies the top coordinate of the target light focus.
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).
iSpread Required. Integerthat specifies the angle, or spread, between the vertical position of the light source and the surface of the object. The angle can range from 0 to 90 degrees. Smaller angle values produce a smaller cone of light; larger values produce an oblique oval or circle of light.

Return Value

No return value.

Remarks

The cone light fades with distance from the target x,y position. The light displays a hard edge at the near edge of its focus and fades gradually as it reaches its distance threshold.

Applies To

Light