Displace Map

 

If you use the following image:

image\ColorBalance_Befor_1.gif

And you were to use the following bitmap as your displacement map:

image\displacementmap.gif

And you were to call the function using the following settings:

Parameter

Value

uHorzFact

17

uVertFact

24

crFill

na

uFlags

FILL_NOCHG | DSPL_STRETCH

The following figure results:

image\displacementmapafter.gif