Why the bitmap inclined
Hi
I am a beginner in game programming. I have read the book Windows Game Programming for Dummies. And try to load my own bitmap use the function inside the book. I found the bitmap is not just inverted but also inclined. Could anyone tell me what''s happen and how could I do?
Thanks
Little Joker
I don''t know the book you''re talking about, but the bitmap being inclined sounds like a problem with the pixel row padding. In a bitmap, every row of pixels should be padded to reach a multiple of four. If your store/load function doesn''t take this into account when displayed the bitmap may be skewed.
Every scanline should be padded to a DWORD.
Check ut my homepage for some reference about this.
It''s in the bitmap write function....(you can use the same for loading, but don''t write *LOL*)
Dance with me......
Check ut my homepage for some reference about this.
It''s in the bitmap write function....(you can use the same for loading, but don''t write *LOL*)
Dance with me......
http://members.xoom.com/CJdeVos/index.htm
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement