public static void FlashFeature(IFeature pFeature)
{
new Thread(new ParameterizedThreadStart((object feature) =>
{
//axMapControl1.FlashShape((feature as ESRI.ArcGIS.Geodatabase.IFeature).Shape);
})).Start(pFeature);
}
public static void FlashFeature(IScreenDisplay pDisplay, IFeature pFeature)
{
return;
IGeometry pGeometry = pFeature.Shape as IGeometry;
int nTimer = 15;
int time = 20;
//ISimpleFillSymbol pFillSymbol;
ISimpleMarkerSymbol pFillSymbol;
ISymbol pSymbol;
IRgbColor pRGBColor;
pRGBColor = new RgbColorClass();
pRGBColor.Green = 128;
//pFillSymbol = new SimpleFillSymbolClass();
pFillSymbol = new SimpleMarkerSymbolClass();
//pFillSymbol.Outline = null;
pFillSymbol.Color = pRGBColor;
pFillSymbol.Size = 25;
pSymbol = (ISymbol)pFillSymbol;
pSymbol.ROP2 = esriRasterOpCode.esriROPXOrPen;
pDisplay.StartDrawing(10, (short)esriScreenCache.esriNoScreenCache);
pDisplay.SetSymbol((ISymbol)pFillSymbol);
for (int i = 0; i < nTimer; i++)
{
//pDisplay.DrawPolygon(pGeometry);
pDisplay.DrawPoint(pGeometry);
System.Threading.Thread.Sleep(time);
}
//IActiveView activeView = Common.map as IActiveView;
//activeView.Refresh();
}
闪烁显示要素
最新推荐文章于 2024-07-28 23:23:55 发布