예제 #1
0
 public Utf8Grid(int utfGridResolution, int tileX, int tileY, int zoom)
 {
     Size size = new Size(256 / utfGridResolution, 256 / utfGridResolution);
     this.bitmap = new Bitmap(size.Width, size.Height, PixelFormat.Format32bppRgb);
     this.graphics = Graphics.FromImage(this.bitmap);
     RectangleF bbox = this.GetBoundingBoxInLatLngWithMargin(tileX, tileY, zoom);
     this.graphicsPathBuilder = new GraphicsPathBuilder(SphericalMercator.FromLonLat(bbox), size);            
     this.results = new Utf8GridResults();
 }
예제 #2
0
        public Utf8Grid(int utfGridResolution, int tileX, int tileY, int zoom)
        {
            Size size = new Size(256 / utfGridResolution, 256 / utfGridResolution);

            this.bitmap   = new Bitmap(size.Width, size.Height, PixelFormat.Format32bppRgb);
            this.graphics = Graphics.FromImage(this.bitmap);
            RectangleF bbox = this.GetBoundingBoxInLatLngWithMargin(tileX, tileY, zoom);

            this.graphicsPathBuilder = new GraphicsPathBuilder(SphericalMercator.FromLonLat(bbox), size);
            this.results             = new Utf8GridResults();
        }