FunctionalLight method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short FunctionalLight (ILEADRaster *pRaster);

Overview

Refer to Applying Artistic Effects

Remarks

(Raster Pro and above toolkits) Adds light to the bitmap according to a function-based distribution. This light will be generated by one of the following methods: linear, quadratic, sine, cosine, or using freehand points.

Controls the brightness of the bitmap according to the method selected for generating the light.

The characteristics of the light to be added are control in the following properties:

LightFrequency property

LightRedAmplitude property

LightGreenAmplitude property

LightBlueAmplitude property

LightXOrigin property

LightYOrigin property

LightPhase property

UserShapeCount property

UserShape property

LightFlags property

This method supports all bits/pixel supported by LEADTOOLS.

Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

LightFrequency property, LightRedAmplitude property, LightGreenAmplitude property, LightBlueAmplitude property, LightXOrigin property, LightYOrigin property, LightPhase property, UserShapeCount property, UserShape property, LightFlags property

Topics:

Raster Images: Artistic Effects