[Dev-C++] displaying images during runtime
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Gregor P. <Gre...@dl...> - 2001-06-23 20:41:30
|
Hi there, I like to display several images during runtime of my programm. Charles Petzold uses in his book "Programming Windows" a function called BITMAPFILEHEADER* DibLoadImage( szName filename ) from DIBFILE.H to manage this. #include "dibfile.h" BITMAPFILEHEADER* pbmfh; pbmfh = DibLoadImage( "myFile.bmp" ); ... SetDIBitsToDevice( pbmfh.cx, pbmfh.cy, ... ); DevC++ doesn't know anything about the header-file and it's functions :-( PS: LoadImage( ) won't work cause it returns a HANDLE instead of a BITMAPFILEHEADER. |