I am wondering how I could search a set rectangle on the screen and have it compare to an image that I specify to see if it matches?
Lets say it could Search x1 y1 to x2 y2 and compare against an image? and return the boolean?
I know Auto-it has a similar function seen here: http://www.autohotkey.com/docs/commands/ImageSearch.htm
Has anyone done this that they could reference? I am using vb.net.
EDIT: Abdias, I have put your code into a class instead and I am calling it like this:
Dim bm As Bitmap = Bitmap.FromFile(Label1.Text)
Dim bm2 As Bitmap = Bitmap.FromFile(Label2.Text)
Dim pnt As Point = ImageFinder.Contains(bm, bm2)
If pnt <> Nothing Then
MessageBox.Show("Possible match found at " & pnt.X.ToString() & " " & pnt.Y.ToString())
Else
MessageBox.Show("No match.")
End If
It seems that every set of images I try return no point. Even though they 100% contain eachother. I took an image and cropped it by a couple px and still did not return a match. I have made sure the source is larger. I tried saving a couple images as 24 bit jpg in paint and still nothing.
Here are two sample images.

I made this function which can see if an image exist within a bigger image. It is written as an extension, but can easily be modified to a normal function as well as supporting a region.
To use it:
BitmapasbmpbmpSearchThen call:
The code for the extension (room for optimizations, but written as a 20 minute exercise for another question on this site):