ExportExtensions
This class provides methods to export the content of a generic FrameworkElement to image, Excel image, and XPS image formats.
Definition
Namespace:Telerik.Windows.Media.Imaging
Assembly:Telerik.Windows.Controls.dll
Syntax:
public static class ExportExtensions
Inheritance: objectExportExtensions
Methods
Exports an image of the given element to the Excel file.
public static void ExportToExcelMLImage(FrameworkElement element, Stream stream)
FrameworkElement to get image from.
streamStreamStream.
Exports an image of the given element to the Excel file.
public static void ExportToExcelMLImage(FrameworkElement element, string fileName)
FrameworkElement to get the image from.
fileNamestringName of the Excel file.
Exports an image of the given element to stream using the specified bitmap encoder.
public static void ExportToImage(FrameworkElement element, Stream stream, BitmapEncoder encoder)
FrameworkElement to get image from.
streamStreamStream to write image to.
encoderBitmapEncoderBitmap encoder.
Exports an image of the given element to stream using the specified bitmap encoder.
public static void ExportToImage(FrameworkElement element, Stream stream, double dpiHorizontal, double dpiVertical, BitmapEncoder encoder)
FrameworkElement to get image from.
streamStreamStream to write image to.
dpiHorizontaldoubleThe horizontal dpi setting.
dpiVerticaldoubleThe vertical dpi setting.
encoderBitmapEncoderBitmap encoder.
Exports an image of the given element to file using the specified bitmap encoder.
public static void ExportToImage(FrameworkElement element, string fileName, BitmapEncoder encoder)
FrameworkElement to get the image from.
fileNamestringName of the file to write the image to.
encoderBitmapEncoderBitmap encoder.
Exports an image of the given element to file using the specified bitmap encoder.
public static void ExportToImage(FrameworkElement element, string fileName, double dpiHorizontal, double dpiVertical, BitmapEncoder encoder)
FrameworkElement to get the image from.
fileNamestringName of the file to write the image to.
dpiHorizontaldoubleThe horizontal dpi setting.
dpiVerticaldoubleThe vertical dpi setting.
encoderBitmapEncoderBitmap encoder.
Exports an image of the given element to the XPS file.
public static void ExportToXpsImage(FrameworkElement element, Stream stream)
FrameworkElement to get image from.
streamStreamStream.
Exports an image of the given element to the XPS file.
public static void ExportToXpsImage(FrameworkElement element, string fileName)
FrameworkElement to get image from.
fileNamestringName of the XPS file.