In this case that i want to invert colors using this method, how would i do so? I know i need to subtract 255 (but the place i'm doing it is obviously wrong. it just keeps giving me a grayscale which i don't want)
for (int x = 0; x < bmp.Width; x++)
{
//set the new image's pixel to the invert version
nRow[x * pixelSize] = (byte)(255 - nRow[x + 0]); //B
nRow[x * pixelSize + 1] = (byte)(255 - nRow[x + 1]); //G
nRow[x * pixelSize + 2] = (byte)(255 - nRow[x + 2]); //R
}