This topic has not yet been rated - Rate this topic

PhotoCamera.GetPreviewBufferArgb32 Method

May 02, 2013

Copies the current viewfinder ARGB frame into a buffer for further manipulation.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
'Declaration
Public Sub GetPreviewBufferArgb32 ( _
	pixelData As Integer() _
)

Parameters

pixelData
Type: System.Int32 ()
The ARGB pixel data.

For more information about how to implement this member, see How to work with grayscale in a camera app for Windows Phone.

Important noteImportant Note:

The YCbCrPixelLayout class is not recommended for determining pixel layout on Windows Phone 8. YCbCr data provided by GetPreviewBufferArgb32(Int32()) follows the NV12 or NV21 format, depending on the version of phone. Apps running on Windows Phone 8 should process YCbCr data according to the NV12 standard rather than use YCbCrPixelLayout to determine pixel the layout. Apps running on phones prior to Windows Phone 8 should process YCbCr data according to the NV21 standard.

Windows Phone OS

Supported in: 8.0, 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.