Home Notices Documents Classes Download Others Rice
Classes  >  bitmap  >  SearchImage(bitmap,int,int)
bitmap class : SearchImage(bitmap,int,int) method

This method was abolished in Ver 1.0.0.1.

Description

Carries out match judgment of image.

Syntax

bitmapInstance.SearchImage(bitmap serachImg, int resultX, int resultY)

Arguments

ClassNameDescription
bitmapserachImgAn image to search.
intresultXAn instance in order to store the horizontal position of the result.
intresultYAn instance in order to store the vertical position of the result.

Return value

None.

Sample code

1:

bitmap serachedImg = new bitmap("http://rice.aki.gs/cookergx/img/someimage.png");

2:

bitmap serachImg = new bitmap("C:\Users\YourName\Documents\img\someimage.bmp");

3:

int resultX;

4:

int resultY;

5:

serachedImg.SearchImage(serachImg, resultX, resultY);

Notes

It returns the upper left coordinates of the first matching range. Searching is start from the upper left corner of the image.

The return values are returned by storing into the second and third argument.

If the result is mismatch, -1 is returned by storing into the second and third argument.

This method was abolished in Ver 1.0.0.1.

Links for reference

None.

Copyright © Rice All rights reserved.