Search
Diagram.ExportImage Method (String, IGraphicsPath, Single, Boolean)
See Also
 






Exports a bitmap file containing an image of the diagram, clipped by specified path and scaled by specified factor.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void ExportImage (
    string filePath,
    IGraphicsPath clip,
    float scale,
    bool prepareImages = false
)

Visual Basic  Copy Code

Public Sub ExportImage( _
    filePath As String, _
    clip As IGraphicsPath, _
    scale As Single, _
    Optional prepareImages As Boolean = False _
)

 Parameters

filePath

The file name or path.

clip

An IGraphicsPath instance returned by GraphicsFactory.CreatePath.

scale

Specifies the scale factor as percentage of the original size.

prepareImages
Optional.

Specifies whether images are pre-rendered within a graphic context prior to an export. This is useful, when the exported diagram is not being drawn on an actual graphic context. The default value is false.

 Remarks

Pixels outside the specified path are set transparent.

 See Also