Hi all!
I'm trying to load a 256 color bitmap with the following code, but it doesn't look good at all! The bitmap is painted over the system bar and has two black lines going throug it....was it wrong...???
Any help would be appriciated!
BTW: Is there an esiaer way to do it??
Last edited by CyberCarsten; Sep 25th, 2002 at 10:17 AM.
Hehe, Mushroom You didn't even look at the post did ya
Carsten, the way I look at it is you have two choices - now I know I suck at C++, and you might not, but check every little detail in the loading section. You'll be surprised at the stuff you missed yesterday that you won't, for example, today.
The other thing I can think of is loading using DirectDraw's internal bitmap loader. Just look up a DirectX resource site and implement its way of loading. It should work for 8-bit bitmaps with a flag.
That's all I can think of, I hope you figure it out! Best of luck!
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
Your code does some weird stuff, my only guess is that your other bitmaps are perhaps less than 8bits. Make sure all your bitmaps are 8bit or 16 bit. Other than that, I would suggest you use the DDLoadBitmap function in the ddutil.h file that comes with DirectX SDK.
It works better man, it can load any number of bits per pixel and i think it will convert it for you... anyways, it returns a directdrawsurface object so you dont have to worry about all of the nasty bitmap loading functions, it does that all.