docs: def write_array(self, outfile, pixels):
          """
          Write an array in flat row flat pixel format as a PNG file on
          the output file.  See also :meth:`write` method.
          """
  
          if self.interlace:
              self.write_passes(outfile, self.array_scanlines_interlace(pixels))
          else:
              self.write_passes(outfile, self.array_scanlines(pixels))