IWiaVideo::TakePicture method (wiavideo.h)

The IWiaVideo::TakePicture method extracts a still image from the video stream, and saves the image as a JPEG file.

Syntax

HRESULT TakePicture(
  [out] BSTR *pbstrNewImageFilename
);

Parameters

[out] pbstrNewImageFilename

Type: BSTR*

Receives the full path and filename of the JPEG file that this method creates.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The path and directory where the image file is saved are specified by the IWiaVideo::ImagesDirectory property.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wiavideo.h
DLL Wiavideo.dll