Class
BitmapUtils

Bitmap utilities.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
public static class BitmapUtils

Inheritance: objectBitmapUtils

Methods

CreateWriteableBitmap(UIElement, Rect, Size, Brush, Thickness, double)

Creates a writeable bitmap of the given FrameworkElement.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessage("Microsoft.Naming", "CA1726:UsePrefferedTerms")]
public static WriteableBitmap CreateWriteableBitmap(UIElement element, Rect enclosingBounds, Size returnImageSize, Brush backgroundBrush, Thickness margin, double dpi = 96)

Parameters

element

UIElement

enclosingBounds

Rect

returnImageSize

Size

backgroundBrush

Brush

margin

Thickness

dpi

double

Returns

WriteableBitmap