Apply transparency globally

Developer
May 19, 2011 at 6:38 PM

I have a bunch of layers that I let the IFeatureScheme colorize for me via CreateCategories.  Works great, but I would like to apply a global transparency setting to all the categories created.  couldn't find a way to do this in one shot in the GUI or programatically.   Will have to write an iterator over the created FeatureCategories to do it?

 

Aaron Parks

RTI International

Developer
May 19, 2011 at 6:41 PM

For the record, the code to do it is:

 IFeatureScheme ifs=some code to make valid IFeatureScheme;

foreach(IFeatureCategory ifc in ifs.GetCategories())
                 {
                     ifc.SetColor(Color.FromArgb(50,ifc.GetColor()));
                 }

 

So not a back breaker, but I don't think there is anyway to do it from GUI.

 

Aaron Parks

RTI International