PictureMediaBufferExtensionDisplay Method MediaSuite 3.1.1889.0
Converts PictureMediaBuffer to BitmapSource and assigns it to an Image.

Namespace: StreamCoders
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax

public static void Display(
	this PictureMediaBuffer picture,
	Image destination,
	bool unlockPicture
)

Parameters

picture
Type: StreamCodersPictureMediaBuffer
The picture to display.
destination
Type: System.Windows.ControlsImage
Image to assign to.
unlockPicture
Type: SystemBoolean
Set to true if the picture should automatically be unlocked (see LockableOperationProvider) after the BitmapSource is created.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PictureMediaBuffer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference