今天写代码时遇到要用后台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

 

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-02-12
  • 2021-12-16
猜你喜欢
  • 2022-01-20
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案