BitmapEncoder.Preview 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 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
InvalidOperationException

The bitmap does not support preview.

ArgumentNullException

The value is set to null.

.NET Framework
Available since 3.0
Return to top
Show: