BufferedGraphicsManager 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供对应用程序域的主缓冲图形上下文对象的访问。
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当前应用程序域的对象。
有关双重缓冲的详细信息,请参阅 双缓冲图形、 BufferedGraphics和 BufferedGraphicsContext。
属性
Current |
获取当前应用程序域的 BufferedGraphicsContext。 |
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈