docs: private int computePixelSize(final SampleModel sampleModel) {
          int size = 0;
  
          for (int i = 0; i < sampleModel.getNumBands(); i++) {
              size += sampleModel.getSampleSize(i);
          }
  
          return size;
      }