code: def dtype(self):
          
          try:
              return self.data.dtype
          except AttributeError:
              return numpy.dtype('%s%d' % (self._sample_type, self._sample_bytes))
docs: Pixel data type.