From: "Jarkko Kähkönen" Newsgroups: comp.os.msdos.djgpp Subject: Calculating transparent pixels in Allegro Lines: 18 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Mon, 17 Jan 2000 22:45:09 +0200 NNTP-Posting-Host: 212.38.230.250 X-Trace: uutiset.nic.fi 948141773 212.38.230.250 (Mon, 17 Jan 2000 22:42:53 EET) NNTP-Posting-Date: Mon, 17 Jan 2000 22:42:53 EET Organization: NIC Tietoverkot Oy - NIC Data Networks Ltd. To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I use Allegro. And I have a program, which calc transparency of about 16 000 pixels in one frame.:) If I use getpixel, getr16, getg16 and getb16 and some other functions to get transparent color between two colors, it is too slow. I use 640x480/16bit mode. Maybe I must do one integer: int transparentpixel [65536][65536]; and at begin of program calculate every pixels transp color?:) That was a joke.:) Help me! Thanks, Jarkko Kähkönen Jarkko DOT Kahkonen AT mbnet DOT REMOVETHIS DOT fi