Page 1 of 1

How to convert the color with GAPI?

PostPosted: Apr 24, 2006 @ 3:37pm
by yeetoo

PostPosted: Apr 24, 2006 @ 6:01pm
by refractor
It's the same kind of thing.

The C code expects the bits to already be in the bottom of the integer. The C# code expects 8 bits per colour.

The C code is masking the unwanted bits out with ANDs whereas the C# code is shifting right first to remove the same bits.

PostPosted: Apr 25, 2006 @ 2:00am
by yeetoo