Oui, c'est plus simple avec. Quel compilateur utilises-tu ?
Cliquez pour révéler
Cliquez pour masquer
/*
FastFind 1.7
Copyright 2010-20011 FastFrench (antispam@laposte.net)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef PixelProcessing_H
#define PixelProcessing_H
// Excluded areas
bool WINAPI IsExcluded(int x, int y, HWND hWnd);
void WINAPI ResetExcludedAreas();
void WINAPI AddExcludedArea(int x1, int y1, int x2, int y2);
// Configuration
void WINAPI SetDebugMode(int NewMode);
void WINAPI SetHWnd(HWND NewWindowHandle, bool bClientArea);
LPCTSTR WINAPI GetLastErrorMsg();
// Fonctions simples
int WINAPI IsInSnapShot(int X, int Y, int NoSnapShot);
int WINAPI FFGetPixel(int X, int Y, int NoSnapShot);
int WINAPI ColorPixelSearch(int &XRef, int &YRef, int ColorToFind, int NoSnapShot);
// Snapshots
int WINAPI SnapShot(int aLeft, int aTop, int aRight, int aBottom, int NoSnapShot);
// Gestion du tableau des couleurs
int WINAPI AddColor (int NewColor);
int WINAPI RemoveColor (int NewColor);
void WINAPI ResetColors ();
int WINAPI GetPixelFromScreen(int x, int y, int NoSnapShot);
// Fonctions de recherche explicitement multi-couleurs
int WINAPI ColorsPixelSearch(int &XRef, int &YRef, int NoSnapShot);
// ColorsSearch est similaire à ColorSearch à un détail important près : il recherche non plus UNE mais plusieurs couleurs simultanément.
int WINAPI ColorsSearch(int SizeSearch, int &NbMatchMin, int &XRef, int &YRef, int NoSnapShot);
// Fonctions de recherche la plus générique (celle qui est appelée dans la plupart des cas in fine)
int WINAPI GenericColorSearch(int SizeSearch, int &NbMatchMin, int &XRef, int &YRef, int ColorToFind, int ShadeVariation, int NoSnapShot);
// Fonction encore plus archi-puissante
int WINAPI ProgressiveSearch(int SizeSearch, int &NbMatchMin, int NbMatchMax, int &XRef, int &YRef, int ColorToFind/*-1 if several colors*/, int ShadeVariation, int NoSnapShot);
// Fonction de comptage des pixels d'une couleur donnée
int WINAPI ColorCount(int ColorToFind, int NoSnapShot, int ShadeVariation);
// Détection des changements
int WINAPI HasChanged(int NoSnapShot, int NoSnapShot2);
int WINAPI LocalizeChanges(int NoSnapShot, int NoSnapShot2, int &xMin, int &yMin, int &xMax, int &yMax, int &nbFound);
LPCTSTR WINAPI GetLastErrorMsg(void);
LPCTSTR WINAPI FFVersion(void);
// Version 1.6
bool WINAPI SaveBMP(int NoSnapShot, LPCSTR szFileName /* With no extension (xxx.bmp added)*/);
void WINAPI StartGDIplus();
void WINAPI StopGDIplus();
bool WINAPI SaveJPG(int NoSnapShot, LPCSTR szFileName /* With no extension*/, ULONG uQuality) ;
int WINAPI GetLastFileSuffix();
int WINAPI KeepChanges(int NoSnapShot, int NoSnapShot2);
int WINAPI KeepColor(int NoSnapShot, int ColorToFind, int ShadeVariation);
// Version 1.7
bool WINAPI DrawSnapShot(int NoSnapShot);
bool WINAPI FFSetPixel(int x, int y, int Color, int NoSnapShot);
bool WINAPI DuplicateSnapShot(int Src, int Dst);
int * WINAPI GetRawData(int NoSnapShot, int &NbBytes);
// Dofus Specific
void WINAPI setDofusDistanceMode(bool bDofusDistance);
#endif // PixelProcessing_H