BitmapEncoder::Preview Property
.NET Framework (current version)
Gets or sets a BitmapSource that represents the global preview of a bitmap, if there is one.
Assembly: PresentationCore (in PresentationCore.dll)
public: property BitmapSource^ Preview { virtual BitmapSource^ get(); virtual void set(BitmapSource^ value); }
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
Available since 3.0
Show: