BitmapEncoder.Preview Property


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

Gets or sets a BitmapSource that represents the global preview of a bitmap, if there is one.

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

public virtual BitmapSource Preview { get; set; }

Property Value

Type: System.Windows.Media.Imaging.BitmapSource

A BitmapSource that represents the preview of a bitmap.

Exception Condition

The bitmap does not support preview.


The value is set to null.

.NET Framework
Available since 3.0
Return to top