Advertisement

lamothes code and loading bitmaps

Started by November 03, 2000 10:45 PM
3 comments, last by OoMMMoO 24 years, 2 months ago
Hey area there alot of other people having problems with lamothes code? I try and laod a bit map which works I then try and flip it which Im not sure if it works then I try and copy it to a surface and display it which doesnt work can someone help me out?
What resolution are you using? What''s the bit depth of the bitmap?
Sorry for jumping on your like that but It''s hard to know what the problem is without more info



- Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction
Advertisement
OoMMMoO >> I built my image class on his loading function and I found some problems. The functions he uses don''t take concideration to the fact that bmp files are DWORD aligned. So i for example 24-bit the width of the image must be a multiple of 8 (or maybe 4, don''t remember).

I haven''t found much else but you might wanna try using our code with some bmp files that are for example 32x32 pixles and see how it work.
You might also want to try using GDI for loading your bitmaps, much easier if you know how (I don''t )



- Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction
Or better yet, use DDLoadBitmap(), to load bmp''s, which is found in the files ddutil.cpp and ddutil.h.

Excuse me whilst I conquer Earth...

Commander M
(a.k.a. Crazy Yank)
http://commanderm.8m.com
CmndrM@gdnmail.net

This topic is closed to new replies.

Advertisement