阅读:1652回复:3
点密度渲染代码请指教???
<P>代码如下:</P>
<P>CMoMapLayer Lyr1=m_Map.GetLayers ().Item (COleVariant("States")); DotRend.CreateDispatch (TEXT("MapObjects2.MoDotDensityRenderer")); MessageBox(lyr.GetName ()); DotRend.SetField ("Area"); DotRend.SetDotSize (4); DotRend.SetDotColor (moBlack); DotRend.SetDotValue (1); DotRend.SetDrawBackground (false);</P> <P> Lyr1.SetRenderer (DotRend);</P> <P> m_Map.Refresh (); DotRend.ReleaseDispatch ();</P> <P>但结果没有效果 ,为什么啊!!!</P> |
|
1楼#
发布于:2004-09-03 21:03
<P>不知道 vc++中有没有ctlrefresh()的方法~~</P>
|
|
2楼#
发布于:2004-09-07 12:23
好象没有!对了,楼上,您的c#的数据处理实现得如何???
|
|
3楼#
发布于:2004-09-07 14:21
DotRend.SetDotSize (4);值设大一点试试
DotRend.SetDotColor (moBlack); DotRend.SetDotValue (1);这个值太小,点太多,设大一点试试 |
|
|