C# MapX 如何添加bmp作为自定义的标签
已成功添加了图元,但是想在其前面添加自定义的bmp文件。
MapXLib.Layer tempstar_lyr; MapXLib.CoordSys coor = axMap1.DisplayCoordSys; tempstar_lyr = axMap1.Layers.CreateLayer("temp_start", Type.Missing, 100, 10, coor); tempstar_lyr.Editable = true; tempstar_lyr.Visible = true; tempstar_lyr.AutoLabel = true; tempstar_lyr.OverrideStyle = true; tempstar_lyr.Style.SymbolFontColor = 0x0000FF; tempstar_lyr.Style.SymbolType = (short)MapXLib.SymbolTypeConstants.miSymbolTypeVector; tempstar_lyr.Style.SymbolVectorSize = 20; MapXLib.Feature SymbolObj = new MapXLib.Feature(); SymbolObj.Attach(axMap1.GetOcx()); SymbolObj.KeyValue = "AAAAAAAAAAAAAAAAAAAAAAA"; SymbolObj.Point = pts; tempstar_lyr.AddFeature(SymbolObj, Type.Missing); //tempstar_lyr.Refresh(); tempstar_lyr.Editable = false;