BUMPDATA

Summary

The BUMPDATA structure contains information about the bump map parameter.

Syntax

typedef struct _BUMPDATA 
{ 
   L_UINT uStructSize; 
   L_INT nAzimuth; 
   L_UINT uElevation; 
   L_UINT uDepth; 
   L_INT nXOffset; 
   L_INT nYOffset; 
   L_INT nXDst; 
   L_INT nYDst; 
   L_BOOL bTile; 
   L_INT nBright; 
   L_INT nIntensity; 
   L_UINT *pLut; 
} BUMPDATA, * pBUMPDATA; 

Members

uStructSize

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

nAzimuth

The Azimuth describes the light source's angular position in the horizontal plane. The valid range is between 360 to 360.

uElevation

The elevation describes the light source's angular position in the vertical plane. The valid range is between 0 to 180.

uDepth

The apparent depth of this three-dimensional effect. Valid values are 0 to 1000, with 500 as normal.

nXOffset

The X coordinate of the origin of the Bump rectangle.

nYOffset

The Y coordinate of the origin of the Bump rectangle.

nXDst

The X coordinate of the origin of the destination rectangle.

nYDst

The Y coordinate of the origin of the destination rectangle.

bTile

Boolean flag that indicates whether to use tiling. Possible values are:

Value Meaning
TRUE use tiling.
FALSE do not to use tiling.

nBright

Amount to change the intensity. The intensity ranges from -1000 to 1000. A positive value increases (or lightens) the brightness of the resulting image. A negative value decreases (or darkens) the brightness of the resulting image.

nIntensity

Amount to change the intensity. The intensity ranges from -1000 to 1000. A positive value increases (or lightens) the brightness of the destination image. A negative value decreases (or darkens) the brightness of the destination image.

pLut

Table of 256 integers containing lookup values that re-map bump bitmap data.

Comments

If the bTile member is set to TRUE, the nXOffset and nYOffset members represent the offset in the bump image. If there is a region on the bump image, this region rectangle will represent the bump bitmap.

If the bTile member is set to FALSE, the nXOffset and nYOffset members represent the position in the bump image. If a region is defined for either the bump or destination bitmap, or both bitmaps, the effect applies only to the intersection of regions.

Usage

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.