MapWinGIS:AxMap DoubleBuffer

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:AxMap_DoubleBuffer"

This page has been accessed 1,495 times. This page was last modified on 9 November 2005, at 18:55.