BitBlt endianness

Bert Freudenberg bert at impara.de
Sat Jun 17 10:30:24 UTC 2006


Am 17.06.2006 um 01:51 schrieb tim Rowledge:

> On 16-Jun-06, at 3:07 PM, Gerardo Richarte wrote:
>
>>     anybody has any idea if it's possible to have BitBlt be in a
>> different endianness (or byte ordering)?
>> Right now, to copy BitBlt to screen, if it's 32 bits I just need  
>> to copy
>> the bytes, but for 16 and 8 bits I need to flip the words/bytes  
>> around?
>
> What are you doing that needs to handle endianness?

If you need to swizzle color components in a Form, then BitBlt with a  
colormap is quite helpful. See class ColorMap.

- Bert -




More information about the Squeak-dev mailing list