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

blinkor12 101 Reputation points
2021-02-16T20:09:11.563+00:00

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):
68733-image.png
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:
68590-rexx.gif

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.