Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: GridColorScheme not working on int data types

I tested your files with the 4.9.3.4 version. I observe the same behavior. The problem is with the selection of the rendering routine. If the following clause is true:
if (_dataType == GDT_Byte && _imgType != ADF_FILE && _dfMax > 15)
it will choose single band greyscale rendering and will ignore the color scheme. If data type is other than GDT_Byte (int or float), it will honor the color scheme. It appears that this selection logic was different in version 4.8.6.

Starting from version 4.9.1 it's possible to override this behavior by setting:
img.AllowGridRendering = tkGridRendering.grForceForAllFormats; 
It works with 4.9.3.4 and the grid is rendered with color scheme. I'm not sure if there is a workaround available in v4.9.0. In general I'd recommend not to use this version, since it's quite old and it's difficult for us to support it. Either stick with the one that is working for you or upgrade to the latest version.

Regards,
Sergei

Viewing all articles
Browse latest Browse all 2341

Trending Articles