Levels allows you to alter various aspects of an image. You can (auto) set the white and black points, or pass a curve to use, along with specific channels to act on. By default it acts on all colour channels together.
point,value
pairs delimited by spaces, for example: 0,0 33,40 66,60 100,100
.