So i have a set of icons that I want to convert to grayscale when some certain conditions are met. Is there an efficient way to do this with geoimages? Currently, I have to get the original bitmap from file (which I have in memory as a geoimage) and then convert it for every pixel in that image. This means have to have one value style that contains color images and another value style that only contains gray images.
The first valueStyle has a column name like ColorIcon whereas the second has something like GrayIcon. When the condition are met for the icon to be gray, I do something like
feature.columnvalues["ColorIcon"] = null;
feature.columnvalues["GrayIcon"] = grayIconName;
Obviously, this would throw an exception for the null column value; however, I did read elsewhere in the forums that there is a workaround for this. However, is there an easier way to do this? I feel like I'm making this more complicated that it needs to be. Thanks!