PhotoCamera.GetPreviewBufferY Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Sub GetPreviewBufferY ( _
    pixelData As Byte() _
)
public void GetPreviewBufferY(
    byte[] pixelData
)

Parameters

Remarks

Important Note:

The YCbCrPixelLayout class is not recommended for determining pixel layout on Windows Phone 8. YCbCr data provided by GetPreviewBufferY(array<Byte>[]()[]) 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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

PhotoCamera Class

Microsoft.Devices Namespace