WriteableBitmap Constructors

Definitie

Initialiseert een nieuw exemplaar van de WriteableBitmap klasse.

Overloads

Name Description
WriteableBitmap(BitmapSource)

Initialiseert een nieuw exemplaar van de WriteableBitmap klasse met behulp van de opgegeven BitmapSource.

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

Initialiseert een nieuw exemplaar van de WriteableBitmap klasse met de opgegeven parameters.

WriteableBitmap(BitmapSource)

Initialiseert een nieuw exemplaar van de WriteableBitmap klasse met behulp van de opgegeven BitmapSource.

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)

Parameters

source
BitmapSource

De BitmapSource te gebruiken voor initialisatie.

Kenmerken

Opmerkingen

De WriteableBitmap(Int32, Int32, Double, Double, PixelFormat, BitmapPalette) constructor heeft de voorkeur boven het gebruik van deze constructor.

Als source er geen systeemeigen ondersteunde bitmapindeling wordt gebruikt, worden indelingsconversies toegepast voor elke frameupdate, waardoor de prestaties worden verminderd.

Van toepassing op

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

Initialiseert een nieuw exemplaar van de WriteableBitmap klasse met de opgegeven parameters.

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)

Parameters

pixelWidth
Int32

De gewenste breedte van de bitmap.

pixelHeight
Int32

De gewenste hoogte van de bitmap.

dpiX
Double

De horizontale puntjes per inch (dpi) van de bitmap.

dpiY
Double

De verticale puntjes per inch (dpi) van de bitmap.

pixelFormat
PixelFormat

De PixelFormat bitmap.

palette
BitmapPalette

De BitmapPalette bitmap.

Kenmerken

Opmerkingen

De voorkeurswaarden hiervoor pixelFormat zijn Bgr32 en Pbgra32. Deze indelingen worden systeemeigen ondersteund en vereisen geen indelingsconversie. Voor andere pixelFormat waarden is een indelingsconversie vereist voor elke frameupdate, waardoor de prestaties worden verminderd.

Van toepassing op