How to get the Colormap from a palettised Raster Dataset?

192
0
07-05-2018 11:07 AM
JonHutchings
New Contributor

I'm trying to create a Bitmap from a Raster where the data is a single band of indices into a palette, without using Desktop.Layer etc, just ArcGIS.Core. I can get the PixelBlock fine, but how can I get the colours right?

I can sort of workaround it by using Raster.SaveAs() to a temp folder and read it back into a Bitmap, but that won't be an acceptable solution in general.

Is there - or will there be - a way to get the Colormap or equivalent table?

0 Kudos
0 Replies