Share via


BufferedGraphicsManager Kelas

Definisi

Menyediakan akses ke objek konteks grafis utama yang di-buffer untuk domain aplikasi.

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
Warisan
BufferedGraphicsManager

Contoh

Contoh kode berikut menunjukkan perolehan BufferedGraphicsContext untuk domain aplikasi saat ini.

// 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

Keterangan

Kelas ini BufferedGraphicsManager memungkinkan Anda menerapkan buffering ganda kustom untuk grafik Anda. Grafik yang menggunakan buffering ganda dapat mengurangi atau menghilangkan kedipan yang disebabkan oleh penggambaran ulang permukaan tampilan.

Kelas ini memiliki satu properti statis, Current, yang mengembalikan yang utama BufferedGraphicsContext untuk domain aplikasi saat ini. Kelas BufferedGraphicsContext membuat instans BufferedGraphics yang dapat digunakan untuk menggambar grafik yang di-buffer.

Kelas BufferedGraphics tidak memiliki konstruktor publik dan harus dibuat oleh BufferedGraphicsContext objek untuk domain aplikasi menggunakan metodenya Allocate . Anda dapat mengambil BufferedGraphicsContext objek untuk domain aplikasi saat ini dari properti statis BufferedGraphicsManager.Current .

Untuk informasi selengkapnya tentang buffering ganda, lihat Double Buffered Graphics, BufferedGraphics, dan BufferedGraphicsContext.

Properti

Current

BufferedGraphicsContext Mendapatkan untuk domain aplikasi saat ini.

Berlaku untuk

Lihat juga