Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System.Drawing
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
BufferedGraphicsManager Class
Provides access to the main buffered graphics context object for the application domain.

Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)

Visual Basic (Declaration)
Public NotInheritable Class BufferedGraphicsManager
Visual Basic (Usage)
Dim instance As BufferedGraphicsManager
C#
public sealed class BufferedGraphicsManager
C++
public ref class BufferedGraphicsManager sealed
J#
public final class BufferedGraphicsManager
JScript
public final class BufferedGraphicsManager
XAML
Not applicable.

The BufferedGraphicsManager class allows you to implement custom double buffering for your graphics. Graphics that use double buffering can reduce or eliminate flicker that is caused by redrawing a display surface.

This class has one static property, Current, which returns the main BufferedGraphicsContext for the current application domain. The BufferedGraphicsContext class creates BufferedGraphics instances that can be used to draw buffered graphics.

The BufferedGraphics class has no public constructor and must be created by the BufferedGraphicsContext object for an application domain using its Allocate method. You can retrieve the BufferedGraphicsContext object for the current application domain from the static BufferedGraphicsManager.Current property.

For more information on double buffering, see Double Buffered Graphics, BufferedGraphics, and BufferedGraphicsContext.

The following code example demonstrates acquiring the BufferedGraphicsContext for the current application domain.

Visual Basic
' Retrieves the BufferedGraphicsContext for the 
' current application domain.
Dim appDomainGraphicsContext As BufferedGraphicsContext = BufferedGraphicsManager.Current
C#
// Retrieves the BufferedGraphicsContext for the 
// current application domain.
BufferedGraphicsContext appDomainGraphicsContext = 
     BufferedGraphicsManager.Current;
C++
// Retrieves the BufferedGraphicsContext for the 
// current application domain.
BufferedGraphicsContext^ appDomainGraphicsContext =
   BufferedGraphicsManager::Current;
System.Object
  System.Drawing.BufferedGraphicsManager
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker