Optional
Consider pixels connected by corners?
false
Clear either white or black area touching the border. In practice it will invert the color.
'white'
Image to which the resulting image has to be put.
Consider pixels connected by corners?