阅读:2117回复:4
在ArcEngine里面怎么掉用在Arcmap里面做好了的填充符号??
Arcmap里面做好了的填充符号,在ArcEngine里面怎么掉用,要用到什么函数,给一段代码看一看行吗??谢谢!!!
|
|
1楼#
发布于:2005-11-21 12:33
<P>顶! 我也想知道~~~~</P><img src="images/post/smile/dvbbs/em01.gif" />
|
|
2楼#
发布于:2005-11-23 15:24
<PRE><PRE><FONT size=2><FONT size=2>'Add a red to the colors in the users default style<BR>Dim pStyleGlry As IStyleGallery<BR>Set pStyleGlry = New StyleGallery<BR>Dim pStyleItem As IStyleGalleryItem<BR>Dim pRgbColor As IRgbColor<BR>Set pRgbColor = New RgbColor<BR>With pRgbColor<BR> .Red = 255<BR> .Green = 0<BR> .Blue = 0<BR>End With</FONT></FONT></PRE><PRE><FONT size=2><FONT size=2>Set pStyleItem = New StyleGalleryItem<BR>pStyleItem.Name = "Red 1"<BR>pStyleItem.Category = "Default"<BR>pStyleItem.Item = pRgbColor<BR>pStyleGlry.AddItem pStyleItem</FONT></FONT></PRE><PRE> </PRE><PRE><FONT size=2><FONT size=2>'Find the first marker in the Civic.style<BR>Dim pStylePath As String<BR>'Add the Civic.style to the IStyleGalleryStorage<BR>Dim pStylStor As IStyleGalleryStorage<BR>Set pStylStor = pStyleGlry<BR>pStylePath = pStylStor.DefaultStylePath ; "Civic.style"<BR><BR>pStylStor.AddFile pStylePath</FONT></FONT></PRE><PRE><FONT size=2><FONT size=2>'Locate the first marker</FONT></FONT></PRE><PRE><FONT size=2><FONT size=2>Dim pItems As IEnumStyleGalleryItem<BR>Set pItems = pStyleGal.Items("Marker Symbols", pStylePath, "Default")<BR>pItems.Reset<BR>Dim pItem As IStyleGalleryItem<BR>Set pItem = pItems.Next<BR>MsgBox pItem.Name</PRE></PRE></FONT></FONT>
|
|
3楼#
发布于:2005-11-24 01:07
<P>谢谢楼上的兄弟!!</P>
<P>这样得到的pItem是"marker symbols"是点符号吧</P> <P>如何得到做好的面填充符号呢????</P> <P>谢谢!!</P> |
|
4楼#
发布于:2005-11-27 17:36
<P>再顶一下,哪位大侠知道????</P>
|
|