Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Rasterized polygon element cannot be transparent.

$
0
0
Is there a way to make a rasterized polygon element transparent?

Here is my code:


CbsColor cbshbColor = base.FillColor;
if (this.Selected)
{
cbshbColor = CbsGeometry.SelectionColor;
}

IRgbColor color = new RgbColor();

color.Red = cbshbColor.Red;
color.Green = cbshbColor.Green;
color.Blue = cbshbColor.Blue;
color.Transparency = cbshbColor.Alpha;


ISimpleFillSymbol simpleFillSymbol = new SimpleFillSymbolClass();
simpleFillSymbol.Color = color;


simpleFillSymbol.Style = esriSimpleFillStyle.esriSFSSolid;


this.ElementFor3D.Geometry = polygon as IGeometry;


IFillShapeElement fillShapeElement = this.ElementFor3D as IFillShapeElement;
fillShapeElement.Symbol = simpleFillSymbol;

IGlobeGraphicsElementProperties asd2 = new GlobeGraphicsElementProperties();

asd2.Rasterize = true;
asd2.Illuminate = false;
globeLayer.SetGlobeProperties(this.ElementFor3D, asd2);


when i make my polygon element rasterized by using IGlobeGraphicsElementProperties interface it does not make my element transparent however when i don't use rasterized property i can make my elemnt transparent.

Is there a way to make a rasterized polygon element transparent. Any help will be appreciated.
Thanks in advance.

Viewing all articles
Browse latest Browse all 1374

Trending Articles