BufferedGraphicsManager 类

定义

提供对应用程序域的主缓冲图形上下文对象的访问。

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

示例

下面的代码示例演示如何获取 BufferedGraphicsContext 当前应用程序域的 。

// 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 允许你为图形实现自定义双重缓冲。 使用双重缓冲的图形可以减少或消除重绘显示图面导致的闪烁。

此类具有一个静态属性 , Current该属性返回 BufferedGraphicsContext 当前应用程序域的主属性。 类 BufferedGraphicsContext 创建 BufferedGraphics 可用于绘制缓冲图形的实例。

BufferedGraphics没有公共构造函数,必须由应用程序域的 对象使用其 Allocate 方法创建BufferedGraphicsContext。 可以从静态BufferedGraphicsManager.Current属性检索BufferedGraphicsContext当前应用程序域的对象。

有关双重缓冲的详细信息,请参阅 双缓冲图形BufferedGraphicsBufferedGraphicsContext

属性

Current

获取当前应用程序域的 BufferedGraphicsContext

适用于

另请参阅