Advertisement

How to load a resource bitmap into a ddraw surface.

Started by September 24, 2002 02:17 AM
1 comment, last by dan59314 22 years, 1 month ago
DDReLoadBitmap(); I know this function can load a bmp file into a surface. But how about from the bitmap resource. Any function or any way I can make it? Thanks a lot. Daniel
quote: Original post by dan59314

DDReLoadBitmap();

I know this function can load a bmp file into a surface. But how about from the bitmap resource. Any function or any way I can make it?

Thanks a lot.

Daniel


Use something like this
hBMP = (HBITMAP) LoadImage( GetModuleHandle(NULL),                             strBMP,                             IMAGE_BITMAP,                             dwDesiredWidth,                            dwDesiredHeight,                             LR_CREATEDIBSECTION );.....StretchBlt(...) 


Similar code used in MS Samples that goes with DX8 SDK.

Sergey.
Sergey.
Advertisement
It works, thanks to Bender.

Daniel

This topic is closed to new replies.

Advertisement