Log in

View Full Version : Problem creating bitmaps



Pietpatat
12-27-2007, 08:27 PM
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?

mickaliscious
12-27-2007, 11:14 PM
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.

MylesMadness
12-28-2007, 09:03 PM
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.