I am trying to replace the black colours of a picture with white, and vice versa. This is actually so my OCR code can read it on white backgrounds better. It\'s currently ge
if your image is B&W, it is very easy in OpenCV:
// bmp is your bitmap var inverted = (255 - bitmap.ToMat()).ToMat(). .ToBitamp() // or .ToWriteableBitmap() // or .ToBitmapSource()
OpenCV can be a little overkill if this in your only manipulation in the whole app