Jump to content

Recommended Posts

Posted (edited)

Is there another code to search bitmap in bitmap?

Edit:

I fixed this, but how to get x, y axis? My code: 

#include <GDIPlus.au3>
#Include <ScreenCapture.au3>
#include <string.au3>
#include <BmpSearch.au3>

$bDebug = False
Const $cMatchLinePercentage=0.99

const $c24RGBFullMatch=1 ;Load as 24 bits and full match
const $c24RGBPartialMatch=2 ;Load as 24 bits and partial match
const $c16RGBFullMatch=3 ;Load as 16 bits and full match
const $c16RGBPartialMatch=4 ;Load as 16 bits and partial match
Global const $Bitmap1Filename = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\CALCULATOR.BMP")
Global Const $Bitmap2Filename = _GDIPlus_ImageLoadFromFile(@scriptDir & "\BACKSPACE.BMP")

findTester($Bitmap1Filename,$Bitmap1Filename,$c24RGBPartialMatch)

Func FindTester($BMP1, $BMP2, $Bool)
local $tResult
_GDIPlus_Startup ()
$start = TimerInit()
$tResult=findBMP($BMP1,$BMP2, $Bool)
ConsoleWrite($tResult)
EndFunc

_GDIPlus_Shutdown()

 

Edited by HomeScript

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...