Creates a Graphics object from the SFMap's internal Image used for double buffering.

Namespace:  EGIS.Controls
Assembly:  EGIS.Controls (in EGIS.Controls.dll)

Syntax

Visual Basic
Public Function CreateMapGraphics As Graphics
C#
public Graphics CreateMapGraphics()
Visual C++
public:
Graphics^ CreateMapGraphics()
JavaScript
function createMapGraphics();

Remarks

The SFMap control uses double buffering for all drawing. All drawing is performed on an image buffer before painting the control. This method creates a Graphics object from the control's Image buffer.

Every call to this method will create a new Graphics obect and the returned Graphics object should be disposed by the caller. If the control is resized the internal buffer will be re-created and a Graphics object returned from this method previously may not be valid.

See Also