Exports a bitmap image that represents the current diagram contents.
VB6 Copy Code |
---|
Public Sub SaveToBitmap( _ |
C++ Copy Code |
---|
public: |
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".
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 |