Search
Graphics.StartUp Method
See Also
 



Initializes and starts-up one of the graphics engines supported by FlowChartX.

 Syntax

VB6  Copy Code

Public Sub StartUp( _
    ByVal GraphicsEngine As EGraphicsEngine _
)

C++  Copy Code

public:
void StartUp (
    EGraphicsEngine GraphicsEngine
)

 Parameters

GraphicsEngine

Specifies which graphics engine to use when rendering diagrams on screen, or printing or exporting them to image files.

 Remarks

Possible values for the GraphicsEngine argument are:

  • geClassic specifies that the classic Window GDI API should be used to render graphics;
  • geGdiPlus specifies that the GDI+ should be used to render graphics;

Starting-up GDI+ fails if the gdiplus.dll is not available on a user's PC. In such situation StartUp falls back to the classic GDI engine and EngineType indicates geClassic as the active engine. If GDI+ starts successfully, it must be shut down upon application exit via ShutDown.

GDI+ works correctly only with proportional fonts. If you enable the GDI+ graphics engine, make sure that all fonts used in your application are proportional. Proportional fonts are marked with 'TT' or 'O' symbols in the standard Windows font dialog.

 Example

The following VB6 code demonstrates how to initialize and shut down GDI+.

VB6  Copy Code

Private Sub Form_Load()

    ' Start GDI+ graphics engine
    fcx.Graphics.StartUp geGdiPlus
    fcx.Graphics.AntiAliasing = True

    fcx.BoxFillColor = vbGreen
    fcx.BoxFillColorAlpha = 100

End Sub

Private Sub Form_Unload(ByVal Cancel As Integer)

    ' It is important to shut down GDI+
    fcx.Graphics.ShutDown

End Sub

 See Also