PixelDataProvider PixelDataProvider PixelDataProvider PixelDataProvider PixelDataProvider Class


Provides access to the pixel data from a bitmap frame.

public : sealed class PixelDataProvider : IPixelDataProvider
struct winrt::Windows::Graphics::Imaging::PixelDataProvider : IPixelDataProvider
public sealed class PixelDataProvider : IPixelDataProvider
Public NotInheritable Class PixelDataProvider Implements IPixelDataProvider
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


An application asynchronously receives a PixelDataProvider from the GetPixelDataAsync methods of BitmapFrame or BitmapDecoder. The application can then synchronously request the pixel data using DetachPixelData to get access to the raw pixels of the bitmap.


DetachPixelData() DetachPixelData() DetachPixelData() DetachPixelData() DetachPixelData()

Returns the internally-stored pixel data.