So a lot of times I see a shot where only 1 color shows up and everything else is black and white. Say like if its a picture of a red car with green wheels sittin on the grass with a tree in the back ground. you take the picture and everything is black and white except the grass, the tree and the rims...

is this a setting on the camera? or is it done in an image editing program?

how do I do it?