Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICameraCaptureDeviceNative::GetPreviewBufferTexture method for Windows Phone 8

July 21, 2014

Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 only

Fills a Direct3D 2-D texture with the current preview frame.

HRESULT GetPreviewBufferTexture(
   [in]    ID3D11Texture2D* pTexture
);

pTexture [in]

Type: ID3D11Texture2D*

A pointer to the Direct3D 2-D texture that is to be filled with the current preview frame.

Type: HRESULT

Returns S_OK if successful, or an error value otherwise.

Important noteImportant Note:

Prior to calling this method, you must call the ICameraCaptureDeviceNative::SetDevice method for Windows Phone 8. The texture passed to this method must belong to the device-context pair that is passed to the SetDevice method.

To access the ICameraCaptureDeviceNative interface, invoke the IUnknown::QueryInterface method on the instance of the PhotoCaptureDevice class or the AudioVideoCaptureDevice class, using the UUID of ICameraCaptureDeviceNative. This method is not directly available from a managed projection, but you can write your own Windows Runtime object that wraps it.

Minimum supported phone

Windows Phone 8

Header

Windows.Phone.Media.Capture.Native.h

Namespace

Windows::Phone::Media::Capture

Show:
© 2014 Microsoft