JuKKa
2007-12-08 06:25:30
I seem to have a bug in the CountColor function.. it returns "0" all the time -.-
2007-12-08 06:25:30
2007-12-08 06:54:29
2007-12-08 07:10:36
2007-12-08 07:32:45
2007-12-08 11:15:03
2007-12-08 13:50:10
2007-12-08 14:32:35
function CountColor(Color, X1, Y1, X2, Y2: LongInt): LongInt;
var
TPA: TPointArray;
begin
FindColorsTolerance(TPA, Color, X1, Y1, X2, Y2, 0);
Result := GetArrayLength(TPA);
end;
function CountColorTolerance(Color, X1, Y1, X2, Y2, Tolerance: LongInt): LongInt;
var
TPA: TPointArray;
begin
FindColorsTolerance(TPA, Color, X1, Y1, X2, Y2, Tolerance);
Result := GetArrayLength(TPA);
end;
2007-12-08 15:16:32
2007-12-08 17:09:54
From: R0b0t1
It must be the way he searches for the color…
Does anyone know if SCAR's FindColor function uses GetPixel?
2007-12-08 23:13:47
2007-12-08 23:28:04
From: Markus
Actually the bug is only with colors other then 0. 0 Just works fine.