ImageGear Professional v18.2 > API Reference Guide > Effects Component API Reference > Effects Component Objects > IGEffectsCtl Control > IGEffectsCtl Methods > RadialLight Method |
Changes the colors of an image according to the pattern of a sine wave. The image will appear to have regularly spaced bars of light and shadow overlaid on top of it in a radial pattern.
Sub RadialLight(Page As IGPage, XCenter As Long, YCenter As
Long, Amplitude As IGDataArray, Frequency As Single, Phase As
Single, Attenuation As Single)
Name | Description |
---|---|
Page | IGPage Object to which to apply the effect. |
XCenter | X coordinate of the center point in the image (in pixels) about which the effect is applied. |
YCenter | Y coordinate of the center point in the image (in pixels) about which the effect is applied. |
Amplitude | Controls the magnitude of color adjustment for each channel of the image. The number of elements of the array is typically set to the number of channels in the image. Each value should range from 0 to 2, although higher values are possible. 0 represents no change in the image color. Higher values represent more intense change. Color changes are clipped, so higher values result in a harder edge to the waveform. |
Frequency | Frequency of sine wave. The value should be from 0 to 0.5. The higher the frequency, the more bars will be visible. |
Phase | Phase of sine wave. The value should be from 0 to 2*PI (approximately 6.28). As the phase is changed, the alignment of the bars is changed. This can be used to line up the bars with image content or boundaries. |
Attenuation | Attenuation of sine wave. The value should be from -0.01 to 0.01. Attenuation adjusts how much the amplitude of the sine wave is decreased or increased as the sine wave proceeds. It can be used to cause the lighting to fade or intensify. |
N/A
All except bitonal, non-gray Indexed and Grayscale with LUT.
Image Processing and Effects