SampleAllocationMode Enumeration
TOC
Collapse the table of content
Expand the table of content

SampleAllocationMode Enumeration

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

Provides values for specifying how the camera video buffer is maintained on Windows Phone.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

public enum SampleAllocationMode

Member nameDescription
NewBufferA new buffer is created for each sample captured. This is the same behavior on Windows Phone.
ReuseBufferA new buffer is created for each sample capture. This can improve performance on Windows Phone by reducing the amount of garbage collection that is required.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft