Skip to content
Snippets Groups Projects
Commit 2b892420 authored by jakubs's avatar jakubs
Browse files

SP-1202 BIS-665 Fix the problem when image was not square

SVN: 30755
parent f9556749
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ public class PngWritingHelper
for (int col = 0; col < cols; ++col)
{
WritableRaster raster = image.getRaster();
short[] value = (short[]) raster.getDataElements(row, col, null);
short[] value = (short[]) raster.getDataElements(col, row, null);
// TODO The values converted by the color model seem to be byte swapped. We
// currently just put the value in the green channel until we figure out how to
// handle these images.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment