[gdal-dev] Problem using RasterIO to flip image
Leith Bade
leith at leithalweapon.geek.nz
Fri May 27 12:46:29 EDT 2011
Hi,
I am trying to write an image that has a y inverted buffer.
I tried this:
band->RasterIO(GF_Write, x, y, width, height, data + width * (height - 1) *
sizeof(short),
width, height, GDT_Int16, sizeof(short), -width * sizeof(short));
But I get a segfault in memcpy.
What am I doing wrong?
Thanks,
Leith Bade
leith at leithalweapon.geek.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110528/42730a25/attachment.html
More information about the gdal-dev
mailing list