I see there's FindColorsBitmap. How can I search for colors with tolerance? Will I have to create my own method or is there one that I'm missing?
EDIT: Got an answer in IRC, thanks to Zef. He said to use FastGetPixels & SimilarColors.
Here's what I made with that incase anyone needs it
Simba Code:
function FindColorsToleranceBitmap(bmp:Integer; var retTPA:TPointArray; color, tolerance:Integer):Boolean;
var
i, w, h:Integer;
TIA:TIntegerArray;
TPA:TPointArray;
begin
GetBitmapSize(bmp, w, h);
TPA := TPAFromBox(intToBox(0, 0, w-1, h-1));
TIA := fastGetPixels(bmp, TPA);
for i := 0 to high(TPA)do
if(SimilarColors(color, TIA[i], tolerance))then
retTPA.append(TPA[i]);
end;