/// <summary> /// /// </summary> /// <param name="map"></param> /// <param name="channel"></param> public void SetColorMap(Texture map, MapChannel channel) { if (mColorMap != null) { mColorMap.Unload(); mColorMap = null; } if (map != null) { mColorMap = ColorMap.Load(map, channel); mColorMap.MapBounds = mMapBounds; mColorMap.Filter = mColorMapFilter; } }
/// <summary> /// /// </summary> /// <param name="mapFile"></param> /// <param name="channel"></param> public void SetColorMap(string mapFile, MapChannel channel) { if (mColorMap != null) { mColorMap.Unload(); mColorMap = null; } if (mapFile != "") { mColorMap = ColorMap.Load(mapFile, channel); mColorMap.MapBounds = mMapBounds; mColorMap.Filter = mColorMapFilter; } }