ASP.NET Pack Programmer's Guide
Diagram.CreateImage Method (RectangleF, Single)
See Also
 





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

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Bitmap CreateImage (
    RectangleF viewport,
    float scale
)

Visual Basic  Copy Code

Public Function CreateImage( _
    viewport As RectangleF, _
    scale As Single _
) As Bitmap

 Parameters

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

 Return Value

An instance of the .NET Bitmap class 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 Bitmap class can be used to save the image in a jpeg, gif or bmp file.

 See Also

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