Imaging.CreateBitmapSourceFromMemorySection メソッド

定義

指定されたアンマネージ メモリの場所に基づいて、マネージド BitmapSourceを返します。

public:
 static System::Windows::Media::Imaging::BitmapSource ^ CreateBitmapSourceFromMemorySection(IntPtr section, int pixelWidth, int pixelHeight, System::Windows::Media::PixelFormat format, int stride, int offset);
[System.Security.SecurityCritical]
public static System.Windows.Media.Imaging.BitmapSource CreateBitmapSourceFromMemorySection(IntPtr section, int pixelWidth, int pixelHeight, System.Windows.Media.PixelFormat format, int stride, int offset);
[<System.Security.SecurityCritical>]
static member CreateBitmapSourceFromMemorySection : nativeint * int * int * System.Windows.Media.PixelFormat * int * int -> System.Windows.Media.Imaging.BitmapSource
Public Shared Function CreateBitmapSourceFromMemorySection (section As IntPtr, pixelWidth As Integer, pixelHeight As Integer, format As PixelFormat, stride As Integer, offset As Integer) As BitmapSource

パラメーター

section
IntPtr

nativeint

メモリ セクションへのポインター。

pixelWidth
Int32

ビットマップの幅をピクセル単位で指定する整数。

pixelHeight
Int32

ビットマップの高さをピクセル単位で指定する整数。

format
PixelFormat

列挙体の値。

stride
Int32

ビットマップのストライド。

offset
Int32

イメージが開始されるメモリ ストリームへのバイト オフセット。

返品

作成された BitmapSource

属性

適用対象

こちらもご覧ください