Show / Hide Table of Contents

Class VisualExtensions

Contains extensions for the Visual class.

Inheritance
object
VisualExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.Wpf.Common.dll
Syntax
public static class VisualExtensions

Methods

| Edit this page View Source

Render(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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX