|
1:16色有两种格式555,565,#define _RGB16BIT555((b%32)+(g%32)<<5,((r%32)<<10)),,#define _RGB16BIT565((b%32)+(g%64)<<6,((r%32)<<11)) (p258)
所以对555来说,(0,0,0)和(255,255,255)是一样的。是吧?
2:(p299) if(pixel=bitmap[index_x]//if(pixel==bitmap[index_x])?
video_buffer[index_x]=pixel;
3 p313) 读8位的图象,为什么要交换red and green fields但是:
int temp_color=bitmap->palette[index].peBlue;
bitmap->palette[index].peRed=bitmap->palette[index].peBlue;
bitmap->palette[index].peBlue=temp_color;
是交换的red and blue?
4 emo15 and Demo16是怎么实现的,为什么Demo15中的红点和绿点刚好在哪个位置 |
|