4

How do I draw transparent polygons in ArcObjects? I mean is it possible to set alpha channel?

  • While not an arcobjects solution this GIS.SE might be of interest as it describes trying to set individual polygon alpha values. – Jay Laura Oct 28 '13 at 17:59
5

Transparency is not a property of a polygon itself, rather it is a property of the layer containing the polygon (like symbology). Take your polygon data, and store it in an IFeatureLayer. From IFeatureLayer, get ILayerEffects, which is an interface of IFeatureLayer. Transparency (0% to 100%) is a property of ILayerEffects.

Also, note this from ESRI documentation:

When you set Transparency for a FeatureLayer, a TransparencyDisplayFilter is created and applied to the layer. You can accomplish the same effect by manually creating a new TransparencyDisplayFilter using IDisplayFilter, and then assigning it to a layer using IDisplayFilterManager.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.