   My BMPs are inconsistent! URGENT HELP!
  I just don''t understand...I used the same way to create all myBMPs and saved them the same way...YET, some images look perfectly fineand some other images looks slantedto the right and have lines on it...AND it''s grey in colour....I''m using 24-bit images, but drawingthem on the DirectX surface in 16-bitmode...why are the images different? ifsome of you have the "Tricks of theWindows Game Programming Gurus" 1999edition and used Andre LaMothe''s"t3dlib1", then that''s the procedureI''m using now, particularly the"Load_Bitmap" procedure...so u guys got any clue?if u don''t have a clue, at least tellme what tools you are using and what settings that you have usedto save your 24-bit bitmaps...thanx!- Haz -  
  Bitmaps are DWORD aligned, but a directdraw surface has a different alignment (I think it''s QWORD, but I''m not sure...); I think you''ll find that if the width of your image is divisible by a number such as 32, you''re almost guaranteed to have no problems, while any odd width is almost guaranteed to have problems.The easy solution is to let windows take care of color conversions and alignment for you. Load the bitmap with the LoadImage function, and call CreateCompatibleDC to get a memory DC. Use SelectObject to select the bitmap into the DC. Now call the GetObject function to obtain the width and height of the bitmap. Now you can create a surface of that width and height. Use the GetDC function of the surface, and then you can call bitblt to copy the bitmap onto the surface. Now you can use the surface''s ReleaseDC function, and free the bitmap and memory DC, as they are no longer needed.  ;  or use tga.  ;  TGA''s are quad-word aligned are they? Besides, unless you use compressed tga''s, you may aswell use bitmaps and windows helper functions. Also, tga compression isn''t that good.( excuse me for getting of topic ).  