PixelFormats.Default Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the pixel format that is best suited for the particular operation.

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

public static PixelFormat Default { get; }

Property Value

Type: System.Windows.Media.PixelFormat

The PixelFormat best suited for the particular operation.

Exception Condition
NotSupportedException

The PixelFormat properties are accessed.

Default is technically not a pixel format but rather a way to access the pixel format best suited for a particular operation. This format is used for situations where the specific pixel format is not important.

<object property="Default"/>

.NET Framework
Available since 3.0
Return to top
Show: