|
|
3.6. Recolor Statement recolor. Changes pixels' colour on slide. recolor (x, y, dx, dy, fColor, tColor, tTolerance)     x (optional) - horizontal position. Default is 0.     y (optional) - vertical position. Default is 0.     dx (optional) - horizontal size. Default is from the x to the slide right boundary.     dy (optional) - vertical size. Default is from the y to the slide bottom boundary.     fColor (optional) - Colour to draw. 000000 is a default.     tColor (optional) - Colour to replace. FFFFFF is a default.     tTolerance (optional) - Colour tolerance (by each component). 0 is a default. The following example generates png file with rectangle and vertical cross superimposed on it, then recolors part of the image from green to blue. # # Example 5. # Demonstrates usage of recolor # slide (Example_05, 200, 300, png)     bColor = FFAA00AA shape (10, 10, 180, 50, rectangle)     lSize = 2     fColor = FF00FF00     bColor = FF000000 shapeover (20, 70, 160, 50, cross)     lSize = 4     fColor = FF00FF00 recolor ( 0, 0, 100, 300, 0000FF, 00FF00, 2) The resulting image is like this:
|
|