BufferedGraphicsManager 类

定义

提供对应用程序域的主缓冲图形上下文对象的访问。Provides access to the main buffered graphics context object for the application domain.

public ref class BufferedGraphicsManager sealed
public sealed class BufferedGraphicsManager
type BufferedGraphicsManager = class
Public NotInheritable Class BufferedGraphicsManager
继承
BufferedGraphicsManager

示例

下面的代码示例演示如何获取BufferedGraphicsContext当前应用程序域的。The following code example demonstrates acquiring the BufferedGraphicsContext for the current application domain.

// Retrieves the BufferedGraphicsContext for the 
// current application domain.
BufferedGraphicsContext^ appDomainGraphicsContext =
   BufferedGraphicsManager::Current;
// Retrieves the BufferedGraphicsContext for the 
// current application domain.
BufferedGraphicsContext appDomainGraphicsContext = 
     BufferedGraphicsManager.Current;
' Retrieves the BufferedGraphicsContext for the 
' current application domain.
Dim appDomainGraphicsContext As BufferedGraphicsContext = BufferedGraphicsManager.Current

注解

BufferedGraphicsManager类允许您为图形实现自定义双缓冲。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.

此类有一个静态属性, Current该属性返回当前应用BufferedGraphicsContext程序域的主。This class has one static property, Current, which returns the main BufferedGraphicsContext for the current application domain. BufferedGraphicsContext类创建BufferedGraphics可用于绘制缓冲图形的实例。The BufferedGraphicsContext class creates BufferedGraphics instances that can be used to draw buffered graphics.

类没有公共构造函数, 必须使用其Allocate方法为应用BufferedGraphicsContext程序域创建对象。 BufferedGraphicsThe BufferedGraphics class has no public constructor and must be created by the BufferedGraphicsContext object for an application domain using its Allocate method. 可以从静态BufferedGraphicsManager.Current属性BufferedGraphicsContext中检索当前应用程序域的对象。You can retrieve the BufferedGraphicsContext object for the current application domain from the static BufferedGraphicsManager.Current property.

有关双缓冲的详细信息, 请参阅双缓冲图形BufferedGraphicsBufferedGraphicsContextFor more information on double buffering, see Double Buffered Graphics, BufferedGraphics, and BufferedGraphicsContext.

属性

Current

获取当前应用程序域的 BufferedGraphicsContextGets the BufferedGraphicsContext for the current application domain.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅