ここでは、動画フレームを静止画として取得する方法を説明したいと思います。 (注意)ここの例では、サンプルを簡潔にするためにエラー処理を書いていません。 とりあえず、コードを書いてみる 動画から静止画を取得する方法にはIBasicVideoを使う方法とSampleGrabberを使う方法の2つがあります。 ここでは、IBasicVideoを利用する方法を説明したいと思います。 下記サンプルは、OKボタンを押すとフレームをビットマップとして保存します。 サンプルの後半部分はビットマップを作成して保存していますが、保存はサンプルをわかりやすくするために行っているだけであり、IBasicVideoの使い方と直接的な関係はありません。 #include <stdio.h> #include <dshow.h> #define FILENAME L"C:\\DXSDK\\Samples\\Media\