SRL Archive - OSR Help

counting bitmaps..


xdarkshadowx

2013-01-11 00:01:03

How would I go about counting how many of a certain bitmap show up in a certain rectangle?

thanks

Le Jingle

2013-01-11 00:43:59

FindBitmapsSpiralTolerance()?

xdarkshadowx

2013-01-11 00:44:44

From: Le Jingle
FindBitmapsSpiralTolerance()?


returns a boolean. not an integer. :(

riwu

2013-01-11 01:03:08

http://villavu.com/forum/showpost.php?p=1149779&postcount=6

Le Jingle

2013-01-11 01:07:14


FindBitmapsSpiralTolerance(bitmap: LongInt;x: LongInt;y: LongInt;var Points: TPointArray;
xs: LongInt;ys: LongInt;xe:LongInt;ye: LongInt;tolerance: LongInt): boolean;

Look at the argument in the parameters, var Points TPointArray; .. this holds the matched (multiple, possibly) points of the given argument bitmap: LongInt;

edit: riwu :ninja:

xdarkshadowx

2013-01-11 01:30:02

Thanks guys, didn't notice the param.