I tried your suggestion of using a modified buffer offset and a negative
nLineSpace parameter, and it worked! Very clever and well done!
Thanks,
Todd___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
tasmi...@rockwellcollins.com a écrit :
Sometimes, it is desirable for GDAL not try to be too smart ;-)
However I think you can achieve what you want if you provide the buffer
with the right offset and a negative nLineSpace parameter. Something
like that (untested !) :
void* pBuffer = malloc(
I work with code that handles data in a particular way. Instead of using
the top-left corner as the origin, it uses the bottom left. It treats the
data as if it's sitting in quadrant 1 on an X-Y plane with the bottom left
corner sitting on the origin. The code expects me to read in the data