Table of Contents

TTMSFNCBloxControl.SaveToImage Method

Renders the diagram to an image file.

API unit family: TMSFNCBloxControl Declaring type: TTMSFNCBloxControl

Overloads

Overload 1

Renders the diagram to an image file.

procedure SaveToImage(AFileName: String; ABloxOnly: Boolean = True; ALinkPoints: Boolean = False; ABackground: Boolean = True);

Parameters

Name Description
AFileName The target image file path.
ABloxOnly When True only the diagram elements are rendered, hiding the snap grid and rulers. Defaults to True.
ALinkPoints When True the link points of elements are drawn. Defaults to False.
ABackground When True the surface background is rendered behind the diagram. Defaults to True.

Overload 2

Renders the diagram to a bitmap and returns it.

function SaveToImage(ABloxOnly: Boolean = True; ALinkPoints: Boolean = False; ABackground: Boolean = True): TTMSFNCBitmap;

Parameters

Name Description
ABloxOnly When True only the diagram elements are rendered, hiding the snap grid and rulers. Defaults to True.
ALinkPoints When True the link points of elements are drawn. Defaults to False.
ABackground When True the surface background is rendered behind the diagram. Defaults to True.

Returns

A new bitmap containing the rendered diagram.