New to Telerik UI for WPFStart a free 30-day trial

Bitmap utilities.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public static class BitmapUtils

Inheritance: objectBitmapUtils

Methods

Creates a writeable bitmap of the given FrameworkElement.

C#
public static WriteableBitmap CreateWriteableBitmap(UIElement element, Rect enclosingBounds, Size returnImageSize, Brush backgroundBrush, Thickness margin, double dpi = 96)
Parameters:elementUIElementenclosingBoundsRectreturnImageSizeSizebackgroundBrushBrushmarginThicknessdpidoubleReturns:

WriteableBitmap