Aracılığıyla paylaş


Imaging.CreateBitmapSourceFromMemorySection Yöntem

Tanım

Sağlanan yönetilmeyen bellek konumuna göre yönetilen BitmapSourcebir döndürür.

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

Parametreler

section
IntPtr

nativeint

Bellek bölümünün işaretçisi.

pixelWidth
Int32

Bit eşlem genişliğini piksel cinsinden belirten bir tamsayı.

pixelHeight
Int32

Bit eşleminin yüksekliğini piksel cinsinden belirten bir tamsayı.

format
PixelFormat

Sabit listesi değeri.

stride
Int32

Bit eşlem adımı.

offset
Int32

Görüntünün başladığı bellek akışına bayt uzaklığı.

Döndürülenler

BitmapSource

Oluşturulan BitmapSource.

Öznitelikler

Şunlara uygulanır

Ayrıca bkz.