Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LIGHTINFO

Show in webframe

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 LBitmap::Light function.

Member

Description

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.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.