Message-ID: <3883C036.E279E731@home.comNOSPAM> From: Robin Johnson Organization: Orbit Computers X-Mailer: Mozilla 4.5 [en]C-AtHome0405 (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Calculating transparent pixels in Allegro References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 35 Date: Tue, 18 Jan 2000 01:21:44 GMT NNTP-Posting-Host: 24.113.36.103 X-Complaints-To: abuse AT home DOT net X-Trace: news1.rdc1.bc.home.com 948158504 24.113.36.103 (Mon, 17 Jan 2000 17:21:44 PST) NNTP-Posting-Date: Mon, 17 Jan 2000 17:21:44 PST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Jarkko Kähkönen" wrote: > 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. Have you considered blitting the entire screen or image to a memory buffer, and comparing from that directly? > > 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 -- Robin Hugh Johnson "Robbat2" QTOD:"I used to be an idealist, but I got mugged by reality." E-Mail : robbat2 AT home DOT com ICQ# : 30269588 or 41961639 Home Page : http://robbat2.cjb.net Time Zone : Pacific Daylight (GMT - 8)