FunctionalLight method (Main Control)
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