ImageEn, unit imageenproc

TImageEnProc.BumpMapping

TImageEnProc.BumpMapping


Declaration

procedure BumpMapping(LightX, LightY, LampX, LampY, pcf: Integer; Color: TRGB);


Description

Applies a bump mapping effect to the current image. This effect and a preview are also available in the Image Processing dialog.

Parameter Description
LightX/LightY Source light position
LampX/LampY Width and height of the source light
pcf Percentage of the effect to apply to the original image (0 to 100)
Color Source light color


Example

ImageEnView1.Proc.BumpMapping(100, 100, 50, 50, 10, CreateRGB(255, 255, 255));


See Also

- CreateRGB
- TRGB2TColor
- TColor2TRGB