suicao / pngj

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImageLineByte writeToPngRaw coding Bug

GoogleCodeExporter opened this issue · comments

in ImageLineByte writeToPngRaw when bitDepth=8 the array is copied twice:
System.arraycopy(scanline, 0, raw, 1, size);

and 

for (int i = 0; i < size; i++) {
  raw[i + 1] = (byte) scanline[i];
}

do the same thing

Original issue reported on code.google.com by tomb.is...@gmail.com on 27 May 2014 at 3:13

Fixed, we'll be included in next release.
https://code.google.com/p/pngj/source/detail?r=fb391a56c1e57a014a86882027dd74c4e
3399fef
Thanks for reporting.

Original comment by hjg.com.ar@gmail.com on 28 May 2014 at 12:02

  • Changed state: Fixed