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);
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
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

Созданный BitmapSource.

Атрибуты

Применяется к

См. также раздел