graphic function ttg_xcolor()

T&T graphic function ttg_xcolor

Each color pixel in the BMP world consist of a Red, Green and Blue intensity between 0 and 255. Using the initials of these colors, each pixel is defined by a RGB triple.

Lets assume a pixel has R = 24, G = 110 and B = 222, calling this function with 'GGG' as third parameter will change this pixel into a (grey) pixel with R = 110, G = 110 and B = 110. The new triple RGB contains the original intensity for Green, Green and Green.

if you want to exchange Red and Green, this parameter should be 'GRB'

Parameters:

1: fullpath to source file
2: fullpath to target file
3: recombine new (RGB) triple from old (RGB) triple