C (56/254)

From:Allan Odgaard
Date:24 Apr 00 at 02:30:03
Subject:Friend bitmap (was: Re: Minterms)

On 24-Apr-00, andrewmarkwell@ukonline.co.uk wrote:

>> call, and make sure that you use friend format.
> What is the friend format for? [...]

It ensures that the allocated bitmap is in the same (pixel) format as that of
its friend.
E.g. if you blit a chunky bitmap (8 planes) to a 16 bit screen (as the previous
example hinted) then the system needs to convert each pixel from 8 bit to 16
bit, using a palette lookup table, thus gets really slow. So always supply a
friend bitmap, if you need to blit a lot from it.

Regards Allan

------------------------------------------------------------------------
IT Professionals: Match your unique skills with the best IT projects at
http://click.egroups.com/1/3381/1/_/451227/_/956540890/
------------------------------------------------------------------------