Search
FlowChart.SaveToBitmap Method
See Also
 



Exports a bitmap image that represents the current diagram contents.

 Syntax

VB6  Copy Code

Public Sub SaveToBitmap( _
    ByVal FileName As String, _
    ByVal left As Long, _
    ByVal top As Long, _
    ByVal right As Long, _
    ByVal bottom As Long _
)

C++  Copy Code

public:
void SaveToBitmap (
    BSTR FileName,
    int left,
    int top,
    int right,
    int bottom
)

 Parameters

FileName
The name of the file in which to store the document.
left
The left side of the rectangle defining which part of the document to save.
top
The top side of the rectangle defining which part of the document to save.
right
The right side of the rectangle defining which part of the document to save.
bottom
The bottom side of the rectangle defining which part of the document to save.

 Remarks

Saves the current FlowChartX diagram into a bitmap file. The Windows GDI fails to create bitmaps larger than ~3000 x 3000 pixels, so the method allows exporting just a portion of the diagram, as specified via the four long arguments.

If the classic GDI graphics engine is used, SaveToBitmap can create files only in bmp format. If the GDI+ Graphics engine is enabled, the method allows exporting images in the following additional formats: jpeg, gif, png and tiff. The image format to use is determined automatically, based on the extension of the file name passed as first argument. The following extensions are recognized: "bmp", "jpg", "jpeg", "gif", "tif" and "png".

 Example

The following VB6 code shows how to export the whole diagram as a bitmap:

VB6  Copy Code

fcx.SaveToBitmap "C:\test.bmp", fcx.DocLeft, fcx.DocTop, fcx.DocRight, fcx.DocBottom

 See Also