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.

Return value


Returns S_OK if successful, or an error value otherwise.


Important 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





See Also

Other Resources

Advanced photo capture for Windows Phone 8

Advanced capture properties for Windows Phone 8