1. A method of calibrating a scanner, comprising: capturing a black calibration file; positioning a scan bar near a substantially uniform white calibration strip; capturing a first white calibration file while a scanner lamp is on; capturing a second white calibration file; and computing gain and offset values using the black calibration file, the first white calibration file and the second white calibration file.