LIGHTINFO

typedef struct _LIGHTINFO 
{ 
   L_UINT uStructSize; 
   POINT ptCenter; 
   L_UINT uWidth; 
   L_UINT uHeight; 
   L_INT nAngle; 
   L_UINT uBright; 
   L_UINT uEdge; 
   COLORREF crFill; 
   L_UINT uOpacity; 
   L_UINT uFlag; 
} LIGHTINFO, *pLIGHTINFO; 

The LIGHTINFO structure provides light source information used in L_LightBitmap function.

Members

uStructSize

Size of this structure, in bytes. Use the sizeof operator to calculate this value.

ptCenter

POINT structure that contains the center of the ellipse used to represent the light.

uWidth

Value that represents the width of the ellipse used to represent the light.

uHeight

Value that represents the height of the ellipse used to represent the light.

nAngle

Angle by which to rotate the ellipse that represents the light. This value is given in hundredths of a degree (+/-). This can be a number from 0 to 36,000. A positive value will rotate the ellipse clockwise, while a negative value will rotate the ellipse counter-clockwise.

uBright

Intensity or brightness of the light.

uEdge

Percentage by which to smooth the light border. The valid range is from 0 to 100.

crFill

Color of the light.

uOpacity

Opacity of the light.

uFlag

Value that determines the light source type. Possible values are:

Value Meaning
LGT_SPOTLIGHT [0x0000] The light will appear as a spotlight, based on the values in the uWidth, uHeight, nAngle and uEdge members.
LGT_DIRELIGHT [0x0001] The light will be applied to the whole image. If this flag is used, the uWidth, uHeight, nAngle, uEdge members will be ignored.
Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help