b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

mapxtreme_判断点是否在面内_mapxtreme 售价(2)

电脑杂谈  发布时间:2017-03-09 00:05:22  来源:网络整理

publicBitmapPointStyle(

stringstrName,

BitmapStylesstyle,

Colorcolor,

doublepointSize

);

strName 图片的相对路径加上名称。一般图片的根路径是 X:\Program Files\Common Files\MapInfo\MapXtreme\6.x\CustSymb X为安装盘。同时图片也放在那里。mapxtreme

style 图片的样式。

None: 按默认的状态显示。并且白色部分将透明。

ShowWhiteBackground: 显示白色部分。

ApplyColor: 在标识中的透明部分将用第三个参数的颜色填充.

NativeSize: 按标识的真实大小和象素显示,第四项参数将无效.

color 白色部分的填充色

pointSize 标识大小

下面分别介绍这几种图标如何在Web中添加展示,下面列出相关代码。

Code

protectedvoidPage_Load(objectsender,System.EventArgse)

{

if(StateManager.IsManualState())

{

MapInfo.Mapping.MapmyMap=GetMapObj();

if(Session.IsNewSession)

{

MapInfo.WebControls.MapControlModelcontrolModel=MapControlModel.SetDefaultModelInSession();

//instanciateAppStateManagerclass

AppStateManagermyStateManager=newAppStateManager();

//putcurrentmapaliastostatemanagerdictionary

myStateManager.ParamsDictionary[StateManager.ActiveMapAliasKey]=this.MapControl1.MapAlias;

//putstatemanagertosession

StateManager.PutStateManagerInSession(myStateManager);

#region测试代码

if(myMap!=null)

{

if(myMap.Layers["TempLayerAlias"]!=null)

{

myMap.Layers.Remove("TempLayerAlias");

}

}

//Needtocleanup"dirty"temptableleftbyothercustomerrequests.

MapInfo.Engine.Session.Current.Catalog.CloseTable("TempTableAlias");

//NeedtocleartheDefautlSelection.

MapInfo.Engine.Session.Current.Selections.DefaultSelection.Clear();

//CreatatemptableandAddPintPointCommandwilladdfeaturesintoit.

MapInfo.Data.TableInfoMemTableti=newMapInfo.Data.TableInfoMemTable("TempTableAlias");


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-36540-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...