Freigeben über


SampleAllocationMode Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Enumeration SampleAllocationMode
public enum SampleAllocationMode

Members

Member name Description
Supported by Silverlight for Windows Phone NewBuffer A new buffer is created for each sample captured. This is the same behavior on Silverlight for the desktop.
Supported by Silverlight for Windows Phone ReuseBuffer A new buffer is created for each sample capture. This can improve performance on Silverlight for Windows Phone by reducing the amount of garbage collection that is required.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference