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)

Syntax

Public Enumeration SampleAllocationMode
public enum SampleAllocationMode

Members

Member name Description
NewBuffer A new buffer is created for each sample captured. This is the same behavior on Windows Phone.
ReuseBuffer A 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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

System.Windows.Media Namespace