Bagikan melalui


BufferedGraphicsManager Kelas

Definisi

Menyediakan akses ke objek konteks grafis buffer utama 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 memperoleh 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 utama BufferedGraphicsContext untuk domain aplikasi saat ini. Kelas BufferedGraphicsContext membuat instans BufferedGraphics yang dapat digunakan untuk menggambar grafik 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

Nama Deskripsi
Current

BufferedGraphicsContext Mendapatkan untuk domain aplikasi saat ini.

Berlaku untuk

Lihat juga