Hi @Jacob Mordon , Welcome to Microsoft Q&A,
Get the exact pixel color by taking a screenshot and locating the mouse position in the image. This method avoids the interference of the magnifying glass.
Here is a sample code:
using System.Drawing;
public static Color GetColorAtPosition(int x, int y)
{
using (var bitmap = new Bitmap(1, 1))
{
using (var g = Graphics.FromImage(bitmap))
{
g.CopyFromScreen(x, y, 0, 0, new Size(1, 1));
}
return bitmap.GetPixel(0, 0);
}
}
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.