diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/ExtensionMethods')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs b/Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs index 422b078a4..8bfc9149a 100644 --- a/Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs +++ b/Software/Visual_Studio/Tango.SharedUI/ExtensionMethods/FrameworkElementExtensions.cs @@ -1,15 +1,28 @@ using System; +using System.Collections; using System.Collections.Generic; using System.Drawing.Imaging; using System.Linq; +using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows; +using System.Windows.Controls; +using System.Windows.Markup; using System.Windows.Media.Imaging; +using Tango.SharedUI.Controls; using Tango.SharedUI.Rendering; public static class FrameworkElementExtensions { + /// <summary> + /// Renders the element to bitmap file. + /// </summary> + /// <param name="element">The element.</param> + /// <param name="filePath">The file path.</param> + /// <param name="format">The format.</param> + /// <param name="renderSize">Size of the render.</param> + /// <param name="quality">The quality.</param> public static void RenderToFile(this FrameworkElement element, String filePath, ImageFormat format, Size renderSize, int quality) { RenderWindow renderer = new RenderWindow(element); |
