suicao / pngj

Automatically exported from code.google.com/p/pngj

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix ImageLine rowNumber behaviour

GoogleCodeExporter opened this issue · comments

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 reported on code.google.com by hgonzalez@gmail.com on 27 Mar 2012 at 2:52

Fixed. 

Original comment by hgonzalez@gmail.com on 3 Apr 2012 at 3:16

  • Changed state: Fixed

Original comment by hgonzalez@gmail.com on 3 Apr 2012 at 3:16

  • Changed state: Verified