Compartir a través de


changeColor Method

Changes the color of a Light filter's light.

Syntax

object.filters.item(
    "DXImageTransform.Microsoft.Light").changeColor(iLightNumber, iRed, iGreen, iBlue, fAbsolute)

Parameters

iLightNumber Required. Integer that specifies the identifier for the light.
iRed Required. Integer that specifies the red value. The value can range from 0 (lowest saturation) to 255 (highest saturation).
iGreen Required. Integer that specifies the green value. The value can range from 0 (lowest saturation) to 255 (highest saturation).
iBlue Required. Integer that specifies the blue value. The value can range from 0 (lowest saturation) to 255 (highest saturation).
fAbsolute Required. Boolean that specifies whether the color values for iRed, iGreen, and iBlue are absolute values that replace the current values, or are relative values that are added to the current values. A nonzero value indicates the color values are absolute; a value of 0 indicates the color values are relative.

Return Value

No return value.

Applies To

Light