BitmapEncoder::Preview Property

 

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:
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
Return to top
Show: