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 );
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.
Important Note: