Class ImageSourceExtensions
Extension methods that create Telerik ImageSource values from WPF System.Windows.Media.Imaging.BitmapSource, with control over export quality for PDF processing.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Extensions
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public static class ImageSourceExtensions
Methods
ToImageSource(BitmapSource)
Create an ImageSource from a System.Windows.Media.Imaging.BitmapSource using the default export image quality.
Declaration
public static ImageSource ToImageSource(this BitmapSource bitmapSource)
Parameters
|
System.Windows.Media.Imaging.BitmapSource
bitmapSource
The bitmap source to convert. |
Returns
|
ImageSource
An ImageSource instance created from the bitmap source. |
ToImageSource(BitmapSource, ImageQuality)
Create an ImageSource from a System.Windows.Media.Imaging.BitmapSource using the specified export image quality.
Declaration
public static ImageSource ToImageSource(this BitmapSource bitmapSource, ImageQuality imageQuality)
Parameters
|
System.Windows.Media.Imaging.BitmapSource
bitmapSource
The bitmap source to convert. |
|
ImageQuality
imageQuality
The image quality to apply during conversion. |
Returns
|
ImageSource
An ImageSource instance created from the bitmap source with the specified quality. |