This is a rather specific problem, so you will not find it in the .NET Framework. You need to break your problem in smaller parts:
Download image from file to disk
Use System.Drawing.Image.FromFile () .
Get a screen image, i.e. a screenshot
Use System.Drawing.Graphics.CopyFromScreen () :
Bitmap CaptureScreen() { var image = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb); var gfx = Graphics.FromImage(image); gfx.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy); return image; }
Find image inside image
See the answer to this question .
Markus johnsson
source share