## Recommended Posts

Hi!!! I am a newbie in DX . I'm reading "Beginning DirectX 9" ebook . That's a good book . i want to load a bitmap from file to surface .I did anything the book showed me but I didn't see anything , the bitmap didn't load . So, can you teach me how to load a bitmap to a surface and give me a sample source code. Thanks a lot.

##### Share on other sites
simple

// create surfaceLPDIRECT3DTEXTURE9 myTexture;// load into surfaceD3DXCreateTextureFromFile(d3dDevice,"myimage.bmp",&myTexture);

hunter_ex

## Create an account

Register a new account

• ## Partner Spotlight

• ### Forum Statistics

• Total Topics
627682
• Total Posts
2978614

• 13
• 12
• 10
• 12
• 22