opiumhautopium1 Posted March 12, 2012 Share Posted March 12, 2012 i need a little help what i want to do is find with FindColorsTolerance find a special color and x times done and work then to store that in a tpoint array called FindAttacerAtAgxAgy ok done and work now i can find attackers thats great and work very good (thx forum^^) i have a output IntToStr(Length(FindAttacerAtAgxAgy)) TPAToStr(FindAttacerAtAgxAgy)) done and work Now I would like to compare FindAttacerAtAgxAgy with a given t point array like if FindAttacerAtAgxAgy = Shipxy then writeln('Shipxyfound'); ( i want to make more than 100 may be 200 fingerprints (shipxy1 to 200) my problem is how to "store" the tpoint array (shipxy) to compare it later in script like ??? shipxy1:=[(100,101),(102,105)];???? thx a lot Quote Link to comment Share on other sites More sharing options...
sjesper Posted March 12, 2012 Share Posted March 12, 2012 [sCAR]Shipxy1 := [Point(100,101), Point(102,105)];[/sCAR] And just remember to make the TPA a global variable, if you need to use it later in another procedure Quote Link to comment Share on other sites More sharing options...
opiumhautopium1 Posted March 12, 2012 Author Share Posted March 12, 2012 thx sjesper i will play a little next weekend ^^ Quote Link to comment Share on other sites More sharing options...
sjesper Posted March 13, 2012 Share Posted March 13, 2012 Np, and if you didn't knew there is a function for comparing TPAs: - http://wiki.scar-divi.com/index.php?title=TPAIntersect Just found it clicking the Random Page x-D Quote Link to comment Share on other sites More sharing options...