MindFusion.Diagramming for Xamarin Programmer's Guide
Diagram.CreateImage Method (IGraphicsPath, Single)
See Also
 






Creates a bitmap image representing this diagram, clipped by specified path and scaled by specified factor.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Task<ImageSource> CreateImage (
    IGraphicsPath clip,
    float scale
)

Visual Basic  Copy Code

Public Function CreateImage( _
    clip As IGraphicsPath, _
    scale As Single _
) As Task(Of ImageSource)

 Parameters

clip

An IGraphicsPath instance returned by GraphicsFactory.CreatePath.

scale

Specifies the scale factor as percentage of the original size.

 Return Value

A Xamarin.Forms.ImageSource instance.

 Remarks

Pixels outside the specified path are set transparent.

 See Also

CreateImage Method Overload List
Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
ExportImage Method