Search
Diagram.CreateImage Method (Rect, Double)
See Also
 





Creates a bitmap image representing this diagram using the specified scale factor.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public IImage CreateImage (
    Rect viewport,
    double scale
)

Visual Basic  Copy Code

Public Function CreateImage( _
    viewport As Rect, _
    scale As Double _
) As IImage

 Parameters

viewport
Specifies what region of the diagram to export.
scale
Specifies the scale factor as percentage of the original size.

 Return Value

A Microsoft.Maui.Graphics.IImage instance containing the diagram image.

 Remarks

The method creates a new bitmap instance as big as the current document extents and paints the diagram in it. The Save method of the IImage object can be used to save the image in a jpeg, gif or bmp file.

 See Also