WriteableBitmap コンストラクター

定義

WriteableBitmap クラスの新しいインスタンスを初期化します。

オーバーロード

WriteableBitmap(BitmapSource)

指定した WriteableBitmap を使用して、BitmapSource クラスの新しいインスタンスを初期化します。

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

指定したパラメーターを使用して、WriteableBitmap クラスの新しいインスタンスを初期化します。

WriteableBitmap(BitmapSource)

指定した WriteableBitmap を使用して、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)

パラメーター

source
BitmapSource

初期化に使用する BitmapSource

属性

注釈

コンストラクターは WriteableBitmap(Int32, Int32, Double, Double, PixelFormat, BitmapPalette) 、このコンストラクターを使用するよりも優先されます。

ネイティブでサポートされているビットマップ形式を使用しない場合 source は、フレームの更新ごとにフォーマット変換が適用され、パフォーマンスが低下します。

適用対象

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

指定したパラメーターを使用して、WriteableBitmap クラスの新しいインスタンスを初期化します。

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)

パラメーター

pixelWidth
Int32

ビットマップの幅。

pixelHeight
Int32

ビットマップの高さ。

dpiX
Double

ビットマップの水平方向の 1 インチあたりのドット数 (dpi)。

dpiY
Double

ビットマップの 1 インチあたりの垂直ドット数 (dpi)。

pixelFormat
PixelFormat

ビットマップの PixelFormat

palette
BitmapPalette

ビットマップの BitmapPalette

属性

注釈

の推奨値 pixelFormatBgr32 次のとおりです Pbgra32。 これらの形式はネイティブでサポートされており、書式変換は必要ありません。 その他の pixelFormat 値では、フレームの更新ごとにフォーマット変換が必要であり、パフォーマンスが低下します。

適用対象