'How to read the pixel value of a geocoordinate from a GeoTiff?

I need to extract the pixel value of a geo coordinate ( lat,lng ) from a geotiff file in c#. However,im not experienced in that topic and kinda stuck. There also no examples on how to do this.

How do you read the pixel value from a given geocoordinate from a geotiff file in C# ? Whats the theory behind it and how do you do it in code ?

Any samples or any help would be great ! :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source