From: "DeHackEd" References: <35c3dbcf DOT 15385935 AT nntp DOT ix DOT netcom DOT com> Subject: Re: Allegro Bitmap Question Date: Sun, 9 Aug 1998 14:16:52 -0400 Lines: 21 Message-ID: Newsgroups: comp.os.msdos.djgpp NNTP-Posting-Host: d15-bn46-blvl-pda.attcanada.net [142.194.137.207] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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!