Damn, this was sooooooo helpful ;-))
I HAVE F*** MSDN !!! This function simply doesn''t work. I called it right, but it doesn''t work. You get always error 87, "invalid parameter". I''m really getting fed up with those DIB''s and the crappiest interface api in the world. In OpenGL you simply use LoadDIBImage and you have your stuff. In win32 you have to call hundreds of stupid unintuitive functions that only work under strange circumstances...
Has anyone on this forum ever loaded a DIB file into a windows hBmp and received the bits of it ? Any REAL code would be very very helpful !
Thanx
Tim
LoadImage() fails....
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
You want to post your code fragment?
BTW: Its not a compressed .bmp is it? I created one my mistake and the API''s behaved very strangley.
---
Rob
See other worlds at http://www.silverfrost.com
BTW: Its not a compressed .bmp is it? I created one my mistake and the API''s behaved very strangley.
---
Rob
See other worlds at http://www.silverfrost.com
---RobSee other worlds at http://www.silverfrost.com
No, it isn''t. But that shouldn''t matter anyway, doesn''t it ? I''m using win32 load image. The now "obsolete" GetBitmapBits works just fine, but GetDIBits() doesn''t work... any ideas ? Just give me some code how to load a DIB, be able to display it with BitBlt (in other word: create a win32 bitmap out of it), and finally get a linear byte array...
any ideas ?
--------------------------
www.glvelocity.com
glvelocity.demonews.com
any ideas ?
--------------------------
www.glvelocity.com
glvelocity.demonews.com
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement