Hello,
I am developing a app that needs to show a colormap based on a known elevation value. For example I have a tiff with elevation data. I want the area that is within 125ft of a my known point to be a solid blue color, the area 125-330ft a yellow color and everything else black. The elevation data/tif is using SRTM data for now so I know I will need to convert the feet to meters.
I have looked at the ColorRamp example and I am unclear what these values represent.
Is this example the right starting point for something like this? Thanks.
// Create a color map where values 0-149 are red and 150-249 are yellow.
IEnumerable<Color> colors = new int[250]
.Select((c, i) => i < 150 ? Color.Red : Color.Yellow);
in their example, they used "ShastaBW.tif"(which you can you load and see the original image) which is black and white image, with each point on the screen scaling from 0(black) to 255(white)
and in their example code, they said, every point with value under 150, will be colored red and everything above it(150-255) is yellow.
In your code you need to think and adjust, you .tif file , to your own color map
for example
0-75 will be blue
75-150 will be yellow
150 and above will be black