Mail Archives: djgpp/1998/08/09/18:30:39
You need to know the colour depth of your bitmaps (it's 8 bit if you havn't
called set_color_depth). Next, multiply that by the x and y values, but remeber
to use bytes for colour depth and not bits.
1 byte per pixel * 8 *8 = 64;
Next, memcmp the bmp->dat entries for 64 bytes.
--
"DeHackEd"
My Email address in the header is fake (spammers). Email me at this address:
http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked
wavemist AT ix DOT netcom DOT com wrote in message
<35c3dbcf DOT 15385935 AT nntp DOT ix DOT netcom DOT com>...
>Hi everyone. I'm trying to find a way to compare two 8 pixel by 8
>pixel Allegro BITMAPs. I tried using memcmp, but I don't know how to
>calculate the amount of memory the bitmap takes up. Please help!
- Raw text -