Aracılığıyla paylaş


WriteableBitmap Oluşturucular

Tanım

WriteableBitmap sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

WriteableBitmap(BitmapSource)

Verilen BitmapSourcekullanarak sınıfının yeni bir örneğini WriteableBitmap başlatır.

WriteableBitmap(Int32, Int32, Double, Double, PixelFormat, BitmapPalette)

Belirtilen parametrelerle sınıfının yeni bir örneğini WriteableBitmap başlatır.

WriteableBitmap(BitmapSource)

Verilen BitmapSourcekullanarak sınıfının yeni bir örneğini WriteableBitmap başlatır.

public:
 WriteableBitmap(System::Windows::Media::Imaging::BitmapSource ^ source);
[System.Security.SecurityCritical]
public WriteableBitmap (System.Windows.Media.Imaging.BitmapSource source);
public WriteableBitmap (System.Windows.Media.Imaging.BitmapSource source);
[<System.Security.SecurityCritical>]
new System.Windows.Media.Imaging.WriteableBitmap : System.Windows.Media.Imaging.BitmapSource -> System.Windows.Media.Imaging.WriteableBitmap
new System.Windows.Media.Imaging.WriteableBitmap : System.Windows.Media.Imaging.BitmapSource -> System.Windows.Media.Imaging.WriteableBitmap
Public Sub New (source As BitmapSource)

Parametreler

source
BitmapSource

BitmapSource Başlatma için kullanılacak.

Öznitelikler

Açıklamalar

Oluşturucu WriteableBitmap(Int32, Int32, Double, Double, PixelFormat, BitmapPalette) , bu oluşturucuyu kullanmak yerine tercih edilir.

Yerel olarak desteklenen bir bit eşlem biçimi kullanılmıyorsa source , her kare güncelleştirmesi için biçim dönüştürmeleri uygulanır ve bu da performansı azaltır.

Şunlara uygulanır

WriteableBitmap(Int32, Int32, Double, Double, PixelFormat, BitmapPalette)

Belirtilen parametrelerle sınıfının yeni bir örneğini WriteableBitmap başlatır.

public:
 WriteableBitmap(int pixelWidth, int pixelHeight, double dpiX, double dpiY, System::Windows::Media::PixelFormat pixelFormat, System::Windows::Media::Imaging::BitmapPalette ^ palette);
[System.Security.SecurityCritical]
public WriteableBitmap (int pixelWidth, int pixelHeight, double dpiX, double dpiY, System.Windows.Media.PixelFormat pixelFormat, System.Windows.Media.Imaging.BitmapPalette palette);
public WriteableBitmap (int pixelWidth, int pixelHeight, double dpiX, double dpiY, System.Windows.Media.PixelFormat pixelFormat, System.Windows.Media.Imaging.BitmapPalette palette);
[<System.Security.SecurityCritical>]
new System.Windows.Media.Imaging.WriteableBitmap : int * int * double * double * System.Windows.Media.PixelFormat * System.Windows.Media.Imaging.BitmapPalette -> System.Windows.Media.Imaging.WriteableBitmap
new System.Windows.Media.Imaging.WriteableBitmap : int * int * double * double * System.Windows.Media.PixelFormat * System.Windows.Media.Imaging.BitmapPalette -> System.Windows.Media.Imaging.WriteableBitmap
Public Sub New (pixelWidth As Integer, pixelHeight As Integer, dpiX As Double, dpiY As Double, pixelFormat As PixelFormat, palette As BitmapPalette)

Parametreler

pixelWidth
Int32

Bit eşlem için istenen genişlik.

pixelHeight
Int32

Bit eşlem için istenen yükseklik.

dpiX
Double

Bit eşleminin inç başına yatay noktaları (dpi).

dpiY
Double

Bit eşleminin inç başına dikey noktaları (dpi).

pixelFormat
PixelFormat

PixelFormat Bit eşlem.

palette
BitmapPalette

BitmapPalette Bit eşlem.

Öznitelikler

Açıklamalar

için pixelFormat tercih edilen değerler ve Pbgra32'tirBgr32. Bu biçimler yerel olarak desteklenir ve biçim dönüştürmesi gerektirmez. Diğer pixelFormat değerler, her çerçeve güncelleştirmesi için bir biçim dönüştürmesi gerektirir ve bu da performansı azaltır.

Şunlara uygulanır