Class VisualExtensions
Contains extensions for the Visual class.
Inherited Members
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.Wpf.Common.dll
Syntax
public static class VisualExtensions
Methods
| Edit this page View SourceRender(Visual, Size, int)
Renders a Visual to a RenderTargetBitmap.
Declaration
public static RenderTargetBitmap Render(this Visual visual, Size size, int dpi)
Parameters
| Type | Name | Description |
|---|---|---|
| Visual | visual | The Visual to render. |
| Size | size | Size of the canvas where the visual will be rendered. |
| int | dpi | Dots‑per‑inch value used to create the bitmap. |
Returns
| Type | Description |
|---|---|
| RenderTargetBitmap | A RenderTargetBitmap containing the rendered image of the specified Visual. |