Description | Copies a color form a source bitmap into a target bitmap and saves it as a new bitmap. The copied color can be changed
Start it on the command line or with a batch file. It needs 9 parameters
1. the source bitmap
2. the target bitmap
3. the new bitmap
4. the color to copy R
5. the color to copy G
6. the color to copy B
7. the new color R
8. the new color G
9. the new color B
F.x.
copycolor2.exe source.bmp target.bmp new.bmp 0 0 0 255 255 255
Copies the black color from source.bmp as white in target.bmp and saves it as new.bmp
There is no error handling in the program, source and target has to be equal size, bit depth has to be 24 or 32.

source.bmp

target.bmp

new.bmp
copycolor2.zip |