You can use the GDALRasterBand::SetScale() and GDALRasterBand::SetOffset() methods[1]. There are methods to retrieve them too.<br><br>[1]: <a href="http://www.gdal.org/classGDALRasterBand.html">http://www.gdal.org/classGDALRasterBand.html</a><br>
<br><div class="gmail_quote">On Tue, Jul 26, 2011 at 2:53 PM, el_inca <span dir="ltr"><<a href="mailto:pavkiz@mail.ru">pavkiz@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thank you for your answer.<br>
<br>
In gdal-translate.exe there is an option of -scale pixel range.<br>
How can i set this parameters from code (visual c++) ?<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6621525.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6621525.html</a><br>
</font><div><div></div><div class="h5">Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>