Re: [gdal-dev] Re: Saving 16 bit image

2011-07-26 Thread Chaitanya kumar CH
You can use the GDALRasterBand::SetScale() and GDALRasterBand::SetOffset() methods[1]. There are methods to retrieve them too. [1]: http://www.gdal.org/classGDALRasterBand.html On Tue, Jul 26, 2011 at 2:53 PM, el_inca wrote: > Thank you for your answer. > > In gdal-translate.exe there is an opt

[gdal-dev] Re: Saving 16 bit image

2011-07-26 Thread el_inca
Thank you for your answer. In gdal-translate.exe there is an option of -scale pixel range. How can i set this parameters from code (visual c++) ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6621525.html Sent from the GDAL - Dev mailing l

Re: [gdal-dev] Re: Saving 16 bit image

2011-07-21 Thread Even Rouault
Selon el_inca : > I just mean..Is it necessary to do manipulations with scanline (byte array > corresponding to 8 bit image) to save it with RasterIO to 16 bit depth ? You *can* use a byte array to write the scanline of a 16-bit image, but of course in that case, the values written in the 16-bit

[gdal-dev] Re: Saving 16 bit image

2011-07-21 Thread el_inca
I just mean..Is it neсessary to do manipulations with scanline (byte array corresponding to 8 bit image) to save it with RasterIO to 16 bit depth ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6606792.html Sent from the GDAL - Dev mailing