Can we use png instead bitmap in GDI for bitblt ?

Posted by nXqd on Stack Overflow See other posts from Stack Overflow or by nXqd
Published on 2010-05-04T11:18:55Z Indexed on 2010/05/04 11:28 UTC
Read the original article Hit count: 322

Filed under:
|
|
HDC hdcMem = CreateCompatibleDC(hdc);
HBITMAP hbmOld = SelectObject(hdcMem, g_hbmBall);
GetObject(g_hbmBall, sizeof(bm), &bm);
BitBlt(hdc, 0, 0, bm.bmWidth, bm.bmHeight, hdcMem, 0, 0, SRCCOPY);

I've found that many games use bitmap for displaying animation . But can we use png instead ?

Because bitmap is quite big when i convert fron png ( 1kb -> 12kb in bitmap )

Thanks for reading this :)

© Stack Overflow or respective owner

Related posts about gdi+

Related posts about png