Finding the location of a specific image inside a PictureBox with VB.NET

blinkor12 101 Reputation points

I have a PictureBox with a image inside it. Inside that image, there is a object placed inside it, which in this case is a 'Red X' in the following image (Just an example of what I mean):
I'm trying to find a way where I can search for the location of the Red 'X' (or any object) inside any given image and return the location of where the red x is located within the larger image with a (x, y) coordinate. I've seen several examples of searching whether the an image exists inside the PictureBox but not being able to output where it is.

Is there a way I can output where the location of the Red-X is of a PictureBox with not just searching for it?

I've attached the red-x image by itself here:

An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,408 questions
{count} votes