An applanation tonometer uses an active pixel sensor array to accurately detect total illumination in a region surrounding an applanated area so that a microprocessor can determine the applanated area based on an inversion of the illumination received by the sensor.