   8-bits Alpha Blending
  I try to make a alpha blending in 8-bits with palette, but there''s some problem with pointing the current position of the Surface . In other word, I did know how to make a alpha blending in 16-bits and 24-bits but in 8-bits. Here are my simple testing code following:    int i,j;    int height,width;    char*lpSprite;    LONGSpritePitch;    WORDsbuf;    LPDIRECTDRAWSURFACE src;    DDSURFACEDESC srcDDSD;    height = 800;    width  = 600;    src = lpBackSurface;    ZeroMemory(&srcDDSD, sizeof(srcDDSD));    srcDDSD.dwSize = sizeof(srcDDSD);    src->Lock(NULL, &srcDDSD, DDLOCK_WAIT, NULL);   SpritePitch = srcDDSD.lPitch;    lpSprite = (char*)srcDDSD.lpSurface;sbuf = (char)(SpritePitch - (1 * width));i = height;do {    j = width;    do {   *((char*)lpSprite) = (char)0xFF;lpSprite++;    }while (--j > 0);    lpSprite += sbuf;}while (--i > 0);    src->Unlock(NULL);I cannot point the current location of the surface I want to blend. Is there any sample or some tutorial about 8-bits alpha blending ? thanks anyway. beside, sorry for my poor english.  