|
1:调色板动画是对显示模式为8位的时候才有的吗?
2:实现调色版动画的过程是怎样?
3:256个PALETTEENTRY中随便是什么都行吗?
4:怎么确定要表现的颜色应使用哪个PALETTEENTRY?比说说想使用黄色,绿色,红色。
5:GetEntries和SetEntries都是从哪拿PALETTEENTRY又放到了哪里
6:给我说说下面代码好吗?palette是全局并绑到lpddpal上的。
int Rotate_Colors(int start_index, int end_index)
{
// this function rotates the color between start and end
int colors = end_index - start_index + 1;
PALETTEENTRY work_pal[MAX_COLORS_PALETTE]; // working palette
// get the color palette
lpddpal->GetEntries(0,start_index,colors,work_pal);
// shift the colors
lpddpal->SetEntries(0,start_index+1,colors-1,work_pal);
// fix up the last color
lpddpal->SetEntries(0,start_index,1,&work_pal[colors - 1]);
// update shadow palette
lpddpal->GetEntries(0,0,MAX_COLORS_PALETTE,palette);
// return success
return(1);
} // end Rotate_Colors
|
|