Class ImageSourceExtensions
Extensions for creating image source from BitmapSource.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Extensions
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public static class ImageSourceExtensions
Methods
ToImageSource(BitmapSource)
Converts a BitmapSource to an ImageSource using the default 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)
Converts a BitmapSource to an ImageSource with the specified 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. |