WmpBitmapEncoder.SubsamplingLevel Property

Gets or sets the sub sampling level for RGB image encoding.

Namespace: System.Windows.Media.Imaging
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public byte SubsamplingLevel { get; set; }
/** @property */
public byte get_SubsamplingLevel ()

/** @property */
public void set_SubsamplingLevel (byte value)

public function get SubsamplingLevel () : byte

public function set SubsamplingLevel (value : byte)

<object SubsamplingLevel="byte" .../>

Property Value

The sub sampling level for RGB image encoding. The range is 0 to 3. The default value is 3.




4:0:0 encoding. Chroma content is discarded, luminance is preserved.


4:2:0 encoding. Chroma resolution is reduced by 1/4 of luminance resolution.


4:2:2 encoding. Chroma resolution is reduced to 1/2 of luminance resolution.


4:4:4 encoding. Chroma resolution is preserved.

Exception typeCondition


The value given is not between 0 and 3.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions