Everfornever, I'd say just make a grayscale version of the map, and use getPixel() to find the colour of the point the player's standing on. Then just convert the colour value to a number; the bigger it is, the bigger the player should be. The range should be from 0 to 0xffffff (16,777,215).