kotcity4 / kotcity.data / BMPImporter / load

load

fun load(imagePath: String): CityMap?

Generates a map by loading the bitmap image file at the provided path and using the color value of each pixel for determining the terrain elevation.

Parameters

imagePath - the path to the source image file

Return
the generated map or null if the image could not be loaded