FunctionalLight method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int FunctionalLight(unsigned uFreq, unsigned uRAmp, unsigned uGAmp, unsigned uBAmp, int nAngle, unsigned uXOrigin, unsigned uYOrigin, int nPhase, L_PINT pBuff, unsigned uBuffCount, unsigned uFlags);

Delphi Syntax

Function FunctionalLight (uFreq: L_UINT; uRAmp: L_UINT; uGAmp: L_UINT; uBAmp: L_UINT; nAngle: L_INT; uXOrigin: L_UINT; uYOrigin: L_UINT; nPhase: L_INT; Buff: L_PINT; uBuffCount: L_UINT; uFlags: L_UINT): L_INT;

Overview

Refer to Applying Artistic Effects

Remarks

(Raster Pro and above toolkits) Adds light to the bitmap currently loaded in the Main Control 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. The bitmap loaded in the Main Control can be accessed through the Bitmap property (Main Control).

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

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:

AddNoise method, Emboss method, Mosaic method, MotionBlur method, Oilify method, Posterize method, RemoveRedeye method, Solarize method, Underlay method, BumpMap method, Cubism method, DrawStar method, Dry method, FreePlaneBend method, FreeRadBend method, GlassEffect method, GlowFilter method, LensFlare method, Light method, Ocean method, PlaneBend method, Plane method, SampleTarget method, Tunnel method, Bending method, Cylindrical method, FreeHandShear method, FreeHandWave method, Impressionist method, Pixelate method, Polar Method, Punch method, RadialBlur method, RadWave method, Ripple method, Spherize method, Swirl method, Wave method, Wind method, ZoomBlur method, ZoomWave method, DiceEffect method, RingEffect method.

Topics:

Raster Images: Artistic Effects