コード例 #1
0
 private void FilterBitMap()
 {
     _filter = dataFileterControl1.CheckedFilter;
     try
     {
         _simpleMapControl.RemoveAllImageLayers();
         for (int i = 0; i < _lstOverviews.Count; i++)
         {
             ProjectionInfo pInfo = _lstOverviews[i].ProjectionInfo;
             if (pInfo.orbitInfo.dayOrNight == "D")
             {
                 if (this.InvokeRequired)
                 {
                     this.Invoke(new Action <OverViewObject>(AddOverView), _lstOverviews[i]);
                 }
                 else
                 {
                     AddOverView(_lstOverviews[i]);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         LogFactory.WriteLine("FilterBitMap:" + ex.Message);
     }
     finally
     {
     }
 }
コード例 #2
0
 private void RefreshOverView()
 {
     _simpleMapControl.RemoveAllImageLayers();
     //for (int i = 0; i < _mosaicProjectionFileProvider.FileItems.Length; i++)
     //{
     //    if (_mosaicProjectionFileProvider.FileItems[i] != null)
     //    {
     //        string filename = _mosaicProjectionFileProvider.FileItems[i].MainFile.fileName;
     //        PrjEnvelope prjEnv = _mosaicProjectionFileProvider.FileItems[i].Envelope;
     //        Bitmap bmp = _mosaicProjectionFileProvider.FileItems[i].OverViewBmp;
     //        if (bmp != null && prjEnv != null)
     //        {
     //            Core.DrawEngine.CoordEnvelope env = new Core.DrawEngine.CoordEnvelope(prjEnv.MinX, prjEnv.MaxX, prjEnv.MinY, prjEnv.MaxY);
     //            _simpleMapControl.AddImageLayer(filename, bmp, env, true);
     //        }
     //    }
     //}
 }
コード例 #3
0
 private void RefreshOverView()
 {
     _simpleMapControl.RemoveAllImageLayers();
     for (int i = 0; i < _mosaicFileProvider.FileItems.Length; i++)
     {
         if (_mosaicFileProvider.FileItems[i] != null)
         {
             string        filename = _mosaicFileProvider.FileItems[i].MainFile.fileName;
             CoordEnvelope env      = _mosaicFileProvider.FileItems[i].Envelope;
             Bitmap        bmp      = _mosaicFileProvider.FileItems[i].OverViewBmp;
             if (bmp != null && env != null)
             {
                 Core.DrawEngine.CoordEnvelope envelope = new Core.DrawEngine.CoordEnvelope(env.MinX, env.MaxX, env.MinY, env.MaxY);
                 _simpleMapControl.AddImageLayer(filename, bmp, envelope, true);
             }
         }
     }
     _simpleMapControl.Render();
 }