How to create a PictureMarkerSymbol (Picture Symbol)in ArcGIS server with C#

今天写代码时遇到要用后台C#代码定义一个PictureMarkerSymbol,以前只用XAML写过,不会,遂找来谷哥,百度到帖子如下,后来又通过微软的MSDN找到另一个方法,现列在下面,留存作为备忘查询帖。

方法一:(http://blog.csdn.net/swfcsunboy/archive/2008/03/01/2136781.aspx

Subject How to create a PictureMarkerSymbol (Picture Symbol)in ArcGIS server with C# 
Author fei wang 
Date Oct 13, 2007 
Message

I had spent long time for finding sample code that can show me how to create a PictureMarkerSymbol in ArcGIS server with C#. However, I couldn't find it. 

Now, I figured out how to do it. 
Here I would like to share my code with you. 

1) add following two namespaces: 

2) create a System.Drawing.Image object: 


3) create PictureMarkerSymbol. 


Happy coding :) 

FEI 

 

方法二:(http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapsource.aspx

 

posted on 2010-08-27 16:48  smellflower  阅读(1085)  评论(0编辑  收藏  举报

导航