Create a negative image

Creating negative of a an image is pretty simple. Let’s have a look at each color component values. Each color component value lies between 0-255. We want opposite value of each color component. Let’s say a color component e.g. red / green / blue has a value of 255 and we want its opposite that is 0. if color component value is 100 then we want a color component value 100 lesser then the full color that is 255-100 = 155.
Retrieve red color component and opposite current value

Retrieve green color component and opposite current value

Retrieve Blue color component and opposite current value

Here is the method that really works and have a look at images displayed below. It really works

Original image is on right and negative image is on left

Original image is on right and negative image is on left