Пример #1
0
        public void GetBingMosaicFixed(ParamBingMosaicFixed param)
        {
            MReader reader = new MReader(Config.CONN_BING, param.source, debugMode, 0, param.date, 50);

            resultAsBytes = reader.GetBingMosaic(param.z, param.width, param.height, param.top, param.left);
            logString     = reader.logString;
        }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SafeRunPrintError(delegate
     {
         ParamBingMosaicFixed param = new ParamBingMosaicFixed(Request);
         try
         {
             Reader reader = new Reader(param.debug);
             reader.GetBingMosaicFixed(param);
             if (!param.debug)
             {
                 OutputImage(reader.resultAsBytes, tileSize);
             }
             else
             {
                 OutputText(reader.logString);
             }
         }
         catch (Exception ex)
         {
             if (!param.debug)
             {
                 OutputBlackTile(tileSize);
             }
             else
             {
                 OutputText(ex.Message);
             }
             Log("bing_mosaic_fixed", ex);
         }
     });
 }