It is very simple to get RGB Color at specific point in an image. For this purpose we need to include System.Drawing Namespace in our code.
Steps as below:using System.Drawing;
- Define a point at which, you want to find the color.
- Get the image loaded.
- Use method GetPixel from Image class instance to get color at a point.
Bitmap img = Image.FromFile(@"<This is simple method getting color at a point.
Image_file_path>") as Bitmap; Color colorAtPoint = img.GetPixel(10, 10);