MapWinGIS:AxMap DoubleBuffer
From MapWindow GIS
DoubleBuffer
Gets or sets whether or not the map uses double buffering. Double buffering uses a little more memory, but allows the view to be smoother with less flickering.
VB.NET Usage
Property DoubleBuffer() As Boolean
Parameters
|
ReturnValue | A boolean value representing whether the map is using double buffering or not. |
Sample Code
Private Sub ToggleDoubleBuffering()
'See if the map is using double buffering
If Map1.DoubleBuffer() Then
'Display message telling user that double buffering is being turned off
MsgBox("Double buffering is on, turning it off.")
'Set the map not to use double buffering
Map1.DoubleBuffer = False
Else
'Display message telling user that double buffering is being turned on
MsgBox("Double buffering is off, turning it on.")
'Set the map to use double buffering
Map1.DoubleBuffer = True
End If
End Sub
VB 6 Usage
Property DoubleBuffer() As Boolean
Parameters
|
ReturnValue | A boolean value representing whether the map is using double buffering or not. |
Sample Code
Private Sub ToggleDoubleBuffering()
'See if the map is using double buffering
If Map1.DoubleBuffer() Then
'Display message telling user that double buffering is being turned off
MsgBox ("Double buffering is on, turning it off.")
'Set the map not to use double buffering
Map1.DoubleBuffer = False
Else
'Display message telling user that double buffering is being turned on
MsgBox ("Double buffering is off, turning it on.")
'Set the map to use double buffering
Map1.DoubleBuffer = True
End If
End Sub
















