Tool

Nameextendcolor
DescriptionExtends a color in a source bitmap with one pixel to each side and saves it as a new bitmap.

Start it on the command line or with a batch file. It needs 5 parameters

1. the source bitmap
2. the new bitmap
3. the color to extend R
4. the color to extend G
5. the color to extend B

F.x.

extendcolor.exe source.bmp new.bmp 0 0 0

Extends the black color with one pixel to each side 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


new.bmp

extendcolor.zipextendcolor.zip