-
Problem creating bitmaps
For this script im creating lots of bitmaps ( most of them are 4/5 lines ). But sometimes i get a really smal bitmap like this:
l-een := BitmapFromString(1, 15, 'beNr7H/r/P9EIACI1It4=');
When i use the findbitmap function on this one it always finds it, doesn't matter if the picture is on the screen or not
The picture of this bitmap is the same size as the 4/5 lines bitmaps.
Is there anyway to create better/bigger bitmaps?
-
Bigger bitmaps are worse than smaller ones. You're problem would be that your bitmap isn't unique enough. Pick a small strip (4 x 15 pixel or lower usually works) from the item you're looking for with lots of colors in it. If that doesn't work try using a smaller amount of tolerance to get less results.
You could also try DTM's.
-
Was the bitmap really 1 x 15? Because i had the same problem but the picture was bigger then that so i shrank it one pixel and it worked.