| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|
|||||||
| Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi gurus,
I have used windows media apis to capture desktop and store as movie files. now i need to capture desktop screen using media apis, but need the output as bmps ( not as movie files, but still need fast captures ) as far as i understand( or searched ), WM encoder outputs only movie files.Is there any method to capture the desktop using Windows Media Encoder APIs and get the frames as bmps? Thanks in advance Last edited by akgalp; September 9th, 2009 at 07:01 AM. |
|
#2
|
|||
|
|||
|
Re: Capture desktop screenshot( as bmp) with Windows Media Encoder APIs
Considering the type of compresion available in BMP's for truecolor images (none). And considering the current screen resolutions... Using bmp as a means for 'fast' capturing seems somewhat a bad idea as it'll be very heavily tied to the throughput of your harddisk.
Otoh, the fact there is no compression also makes doing this easy. Simply make a BMP header once (it'll be the same for all the images unless you need to account for changes in desktop size), output the BMP header, and dump the raw screen data after it to the same file. See here: http://msdn.microsoft.com/en-us/libr...91(VS.85).aspx |
|
#3
|
|||
|
|||
|
Re: Capture desktop screenshot( as bmp) with Windows Media Encoder APIs
thanks
Quote:
Quote:
|
|
#4
|
|||
|
|||
|
Re: Capture desktop screenshot( as bmp) with Windows Media Encoder APIs
Don't use WME, use GDI ?
-> GetDIBits() If you want to use WME, you'll need a codec that writes the frames as bmp's... You could write your own codec for this. There may be a codec that already does this. |
|
#5
|
|||
|
|||
|
Re: Capture desktop screenshot( as bmp) with Windows Media Encoder APIs
yes, but this woudn't capture directx rendered images, and that's why we turned to WME.
Quote:
|
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|