Tool

Namecopycolor
DescriptionCopies a color form a source bitmap into a target bitmap and saves it as a new bitmap.

Start it on the command line or with a batch file. It needs 6 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

F.x.

copycolor.exe source.bmp target.bmp new.bmp 0 0 0

Copies the black color from source.bmp 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

copycolor.zipcopycolor.zip