Le vendredi 27 mai 2011 18:46:29, Leith Bade a écrit :
> 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(
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?
Than