Advertisement

DirectX *mumbles*

Started by January 31, 2000 05:53 AM
10 comments, last by Miraj 25 years, 1 month ago
I''m using D3D IM. When using Blt(), does the texture surface need to be created on the same bit depth as the screen display color depth? I''m using D3D to rotate my bitmaps.

I think alot of your problems are in your understanding of how colors work in computers. For instance if you create a bitmap of 256 colors and then initialize directX to 24bpp then load your bmp and blit it... It will indeed look very garbled. I don''t think this is the right time or place to explain how to convert images from different bit depths and as there are many tutorials on this subject ( on this site ) but if you just want to get an image on the screen to make you happy create your bitmaps at the same depth of the screen your creating.


DirectDrawCreate(lpDD,640,480,16)
//load 16bpp image
// blit it.

complex eh?


Where is your faith now?

This topic is closed to new replies.

Advertisement