private void SaveTileToDisc(int tileX, int tileY, int zoom, string tableName, Bitmap bmp) { if (bmp != null && bmp.Tag == null) { RasterFileSystem rasterFS = new RasterFileSystem(SqlServerModel.GetSqlDatabaseName(this.GetConnectionString()), tableName); rasterFS.SaveTileBitmap(bmp, ImageFormat.Png, zoom, tileX, tileY); } }
private Bitmap LoadTileFromDisc(int tileX, int tileY, int zoom, string tableName) { RasterFileSystem rasterFS = new RasterFileSystem(SqlServerModel.GetSqlDatabaseName(this.GetConnectionString()), tableName); return(rasterFS.GetTileBitmap(zoom, tileX, tileY)); }