[gdal-dev] Expanding a palette image to 3 bands
Henneke, Amanda M
amanda.m.henneke at boeing.com
Fri Aug 14 09:21:38 EDT 2009
Hello all-
I have a need to expand a 1 band palette tif file into a 3 band (rgb) tif file. I have found that gdal_translate -expand rgb will do this from the command line, but I was wondering if there was some way to do this within C# using the GDAL bindings? I notice there is a ColorTable object and PaletteInterpretation object, but I haven't figured out yet (or seen anything online) about how to use these to expand the image.
Can anyone help?
Thanks,
Amanda
Amanda M. Henneke
When One tugs at a single thing in Nature, he finds it attached to the rest of the world. -John Muir
Please consider the environment before printing this e-mail.
More information about the gdal-dev
mailing list