Click or drag to resize
ExtensionMethodsSetSourceEx Method (BitmapImage, Byte, String)

Namespace: Telerik.Windows.Documents.Layout
Assembly: Telerik.Windows.Documents (in Telerik.Windows.Documents.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
Syntax
public static byte[] SetSourceEx(
	this BitmapImage bitmapImage,
	byte[] imageBytes,
	ref string extension
)

Parameters

bitmapImage
Type: System.Windows.Media.ImagingBitmapImage
imageBytes
Type: SystemByte
extension
Type: SystemString

Return Value

Type: Byte

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BitmapImage. 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