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

Bricks Texture

Show in webframe

 

Suppose you were to start with a gray image, like the following figure:

image\GraySourceImage.gif

Now suppose you call the function. The following settings apply to all of the following figures:

Parameter

Value

uOffsetX

0

uOffsetY

0

uRowDifference

35

uBricksWidth

60

uBricksHeight

20

If you were to use the following additional settings:

Parameter

Value

uMortarRoughness

0

uMortarRoughnessEvenness

0

uBricksRoughness

0

uBricksRoughnessEvenness

0

uFlags

BRICKS_SMOOTHEDOUT

The following figure results:

image\BTBzeroes.gif

Note how smooth the surface of both the mortar and the bricks is. In the following figure, the only change from the previous settings is the value of uBricksRoughness, which is set to 196:

image\BTBrough.gif

In the following figure, uBricksRoughness remains set to 196 and in addition, uBricksRoughnessEvenness is set to 4:

image\BTBsmoothed.gif

The next two figures show the difference between the BRICKS_SMOOTHEDOUT flag and the BRICKS_SMOOTHEDIN flag. For these figures the following settings are used:

Parameter

Value

uMortarRoughness

0

uMortarRoughnessEvenness

0

uBricksRoughness

250

uBricksRoughnessEvenness

4

uEdgeWidth

7

uMortarWidth

4

In the following figure the BRICKS_SMOOTHEDOUT flag is set:

image\BTBSmoothedOut.gif

In the following figure, the BRICKS_SMOOTHEDIN flag is set:

image\BTBSmoothedIn.gif

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