SRL Archive - Help and Support

Masked bitmaps.


Keen

2006-05-10 07:24:15

Could anyone please explain to me how I would make a masked bitmap. It would really help me out because I can't be bothered bitmaping all the diffrent colors and stuff.

Thanks. :rolleyes:

driger1592

2006-05-10 08:01:08

I used a bitmap mask in my fletcher. Basically, you take a bitmap and use a function like FindBitmapMaskTolerance. You can use text (recommended) by doing

maskX := CreateBitmapMaskFromText('Make X', upChars);

where 'Make X' is the text you're looking for, and upChars is the font you're using. Just remember to declare the font somewhere in your script, or "steal" it from an include you're using ;)

Keen

2006-05-10 10:18:55

ummmm, Thanks Driger.

I think I know what you mean.
Thanks for explaining.