leonbloy / pngj

PNGJ : pure Java library for high performance PNG encoding
http://hjg.com.ar/pngj/
273 stars 52 forks source link

Fix ImageLine rowNumber behaviour #8

Closed leonbloy closed 9 years ago

leonbloy commented 9 years ago

From hgonzalez@gmail.com on March 27, 2012 11:52:35

In 0.70 the rowNumber is automatically incremented in each write. This breaks the read/write logic:

  for (int row = 0; row \< pngr.imgInfo.rows; row++) {
            ImageLine l1 = pngr.readRow(row);
            ...
            pngw.writeRow(l1);
      }

Besides, that automatic increment makes little sense unless at ImageLine creation the row number is set at 0.

Original issue: http://code.google.com/p/pngj/issues/detail?id=8

leonbloy commented 9 years ago

From hgonzalez@gmail.com on April 03, 2012 08:16:04

Fixed.

Status: Fixed

leonbloy commented 9 years ago

From hgonzalez@gmail.com on April 03, 2012 08:16:22

Status: Verified