Pentax K-m has a 10.0MP APS-C (23.5 x 15.7 mm ) sized CCD sensor . You can shoot at maximum resolution of 3872 x 2592 pixels with aspect ratios of and 3:2. K-m has a native ISO range of 100 - 3200 and it can save files in RAW format which gives you a wider room for post processing.
Pentax K-m is not the highest resolution APS-C camera. Fujifilm X-E5 with its 40.0MP sensor is leading in this class. Check the comparison of Pentax K-m vs Fujifilm X-E5 or take a look at Highest resolution DSLR cameras list.
Pentax K-m DxOMark Sensor Scores
DxOMark is a benchmark that scientifically assesses image quality of camera sensors. Pentax K-m sensor has been tested by DxO Mark and got an overall score of 64 for its image quality. You can find the details of their analysis of Pentax K-m here.
Let's look at how the size of the Pentax K-m's APS-C sensor compares with other standard sensor sizes.
Comparison image of Pentax K-m Sensor Size with other standard sensors
Sensor size is what determines the circle of confusion, and therefore how much
depth of field Pentax K-m gives you at any given aperture.
You can
calculate
the exact depth of field for the Pentax K-m
at any focal length, aperture and subject distance, including the hyperfocal distance
for landscapes and the very shallow focus zone you get with long telephoto lenses.