This site is no longer active and is available for archival purposes only. Registration and login is disabled.

How to convert the color with GAPI?


How to convert the color with GAPI?

Postby yeetoo » Apr 24, 2006 @ 3:37pm

Last edited by yeetoo on Apr 25, 2006 @ 2:42am, edited 1 time in total.
yeetoo
pm Member
 
Posts: 5
Joined: Apr 20, 2006 @ 2:45am
Location: China


Postby refractor » Apr 24, 2006 @ 6:01pm

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.
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby yeetoo » Apr 25, 2006 @ 2:00am

yeetoo
pm Member
 
Posts: 5
Joined: Apr 20, 2006 @ 2:45am
Location: China


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron