bool WriteFileImage(HeightData source, string filename, FileFormat ff) { float[,] grid = source.GetDataGrid(); IExporter exporter = new ImageGenerator(grid, source.cellSize, ff.GetImageType(), source.lowPoint, source.highPoint); ExportUtility.WriteFile(exporter, filename, ff); return(true); }