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 Functionality Samples

Colored Balls

Show in webframe

 

If you use the following figure.

image\ReplaceColor_Befor_2.gif

If you call the function using the following values:

Parameter

Value

uNumBalls

500

uSize

10

uSizeVariation

90

nHighLightAng

315

crHighLight

White

crBkgColor

Blue

crShadingColor

Black

uAvrBallClrOpacity

0

uBallClrOpacityVariation

0

uRipple

4250

uFlags

CLRBALLS_SHADING_TOPBOTTOM | CLRBALLS_STICKER | CLRBALLS_IMAGE | CLRBALLS_ BALLCLR_OPACITY

The following figure will result:

image\coloredballssticker.gif

As another example, if you call the function using the following settings:

Parameter

Value

uNumBalls

1500

uSize

4

uSizeVariation

0

nHighLightAng

315

crHighLight

White

crBkgColor

Blue

crShadingColor

Black

uAvrBallClrOpacity

108

uBallClrOpacityVariation

13

uRipple

1000

uFlags

CLRBALLS_SHADING_LEFTRIGHT | CLRBALLS_BALL | CLRBALLS_IMAGE | CLRBALLS_ BALLCLR_OPACITY

You will obtain the following figure if you use magenta as the color for the balls:

image\ColoredBalls.gif

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