|
From: Gregor P. <Gre...@dl...> - 2001-06-24 18:35:22
|
I fear that won't help cause I don't want to _set_ the parameter I wanna _get_ these informations of the DIB. How to load a Image from disk, let's say "picture.bmp" (which is -just for example- about 50k), findout its dimensions and display it on the screen? Gregor ----- schnipp ----- Elias Pschernig wrote: > > Hmmm, the LoadImage( ... ) is a part of the Programmers Reference but > > returns (just) a HANDLE . > > What I need is a pointer to a BITMAPFILEHEADER to get some informations > > SetDIBBitsToDevice( ... ) needs to be able to display the loaded Image. > > I can't find any informations about HANDLEs in the Windows API reference. > > Is it possible to feed the BITMAPFILEHEADER structure via this HANDLE? > > Gregor > > Have a look at the GetDIBits() function, it seem to convert from the HANDLE > into what you want. > > Elias Pschernig |