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(); }