Skip to main content
GameDev.net gamedev.net
🔒 Locked

lamothes code and loading bitmaps

Started by OoMMMoO Nov 3, 2000 at 10:45 PM 3 replies 350+ views
Original Post
OoMMMoO
OoMMMoO
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?
Tornado
Tornado
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
goir
goir
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.
Tornado
Tornado
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.