Salut,
J'ai besoin d'afficher des images bitmaps pixel par pixel et non via le BitBlt.
J'aimerais pouvoir acceder à ce qu'on appelerait la memoire video d'une fenetre via un simple pointeur.
J'aimerais resté tres pres de ce code:
HDC hDC = GetDC(hWnd);
hdcCompatible = CreateCompatibleDC(hDC);
bmp = LoadBitmap(g_hInstance,MAKEINTRESOURCE(IDB_BITMAP1));
oldBmp = SelectObject(hdcCompatible,bmp);
ReleaseDC(hWnd,hDC);
....
hDC = BeginPaint(hWnd,&ps);
BitBlt( hDC,0,0,200,20,hdcCompatible,0,0,SRCCOPY);
EndPaint(hWnd,&ps);
Pour allumer un pixel, un SetPixel suffit mais je n'ai pas envie de recalculer l'offset a chaque fois.
J'aimerais obtenir un pointeur vers le bitmap, un autre vers la fenetre et faire un truc du genre:
*pointeurFenetre = *pointeurBMP;
Est-ce possible et comment ?
Merci