
/////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
//																				   //
//		Filename:		BBAR.h												       //
//																				   //
//		Desription:		BBAR v.1.02												   //
//																				   //
//						Bingo Balls Automatic Reader							   //
//																				   //
//		Date:			Feb. 2007								  		           //
//																				   //
//		Developed by:	NEURAL LABS S.L.										   //
//																				   //
/////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////




// Definitions.
////////////////////////////////////////////////////////

#define BBARAPI	__declspec( dllimport ) 


#define FUNCTION_MOD WINAPI			// For Microsoft


#define BALL_TYPE_10_NUMBERS	0x0010
#define BALL_TYPE_12_NUMBERS	0x0020




// Exported Functions.
////////////////////////////////////////////////////////

// Initialization.
extern "C" BBARAPI bool  FUNCTION_MOD bbarInit();

// Image Loading/Setting.
extern "C" BBARAPI bool  FUNCTION_MOD bbarLoad(char* strFilename);
extern "C" BBARAPI bool  FUNCTION_MOD bbarSet(long lWidth, long lHeight, BYTE* pBuffer);
extern "C" BBARAPI bool  FUNCTION_MOD bbarSetRGB24(long lWidth, long lHeight, BYTE* pBufferRGB24);

extern "C" BBARAPI void  FUNCTION_MOD bbarSetWindow(long lLeft, long lTop, long lRight, long lBottom);

// Reading Bingo Balls.
extern "C" BBARAPI bool  FUNCTION_MOD bbarReadBall(long lRadius, long lCentreX, long lCentreY, long lType = BALL_TYPE_10_NUMBERS);
extern "C" BBARAPI bool  FUNCTION_MOD bbarReadBallAuto(long lRadius, long lType = BALL_TYPE_10_NUMBERS);

// Retrieving Results.
extern "C" BBARAPI void  FUNCTION_MOD bbarGetNumber(long* plNumber);
extern "C" BBARAPI void  FUNCTION_MOD bbarGetConfidenceFactor(float* pfCF);



