Advertisement Jump to content
Sign in to follow this  


This topic is 4925 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I'm not sure how to solve this issue. can anyone help me? The problem is, I have 1024*768 color bitmap with RGB channels. Earlier, I use to pass the file name and get fullscreen display of bitmap. Now, I want to pass, the image array and display it in fullscreen mode. I want this array to be read from memory and in correct color format. I'm using D3DFMT_X8R8B8G8. I don't know how to do this. Initially, i tried reading each pixel in XRGB format into a new array. then thought of passing pointer of this new array to D3DXLoadSurfaceFromMemory function. Is this a right way? I'm not success with this. I don't want to write anything in file. Please someone help me. Any sample program will be appreciated. I'm new to direct X 9.0 programming, so please help me. Thanks Regards

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!