WriteableBitmap Oluşturucular

Tanım

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

Aşırı Yüklemeler

Name Description
WriteableBitmap(BitmapSource)

verilen WriteableBitmapöğesini kullanarak sınıfının yeni bir örneğini BitmapSource 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 WriteableBitmapöğesini kullanarak sınıfının yeni bir örneğini BitmapSource 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 bit eşlem biçimi kullanılmıyorsa source , her çerçeve 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şlemin istenen genişliği.

pixelHeight
Int32

Bit eşleminin istenen yüksekliği.

dpiX
Double

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

dpiY
Double

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

pixelFormat
PixelFormat

PixelFormat Bit eşlem.

palette
BitmapPalette

BitmapPalette Bit eşlem.

Öznitelikler

Açıklamalar

ve için pixelFormat tercih edilen değerlerdir Bgr32Pbgra32. 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