Imaging.CreateBitmapSourceFromMemorySection Methode

Definitie

Retourneert een beheerde BitmapSource, op basis van de opgegeven onbeheerde geheugenlocatie.

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

Parameters

section
IntPtr

nativeint

Een aanwijzer naar een geheugensectie.

pixelWidth
Int32

Een geheel getal dat de breedte, in pixels, van de bitmap aangeeft.

pixelHeight
Int32

Een geheel getal dat de hoogte, in pixels, van de bitmap aangeeft.

format
PixelFormat

Een waarde van de opsomming.

stride
Int32

De onderdrukking van de bitmap.

offset
Int32

De byte-offset in de geheugenstroom waar de afbeelding wordt gestart.

Retouren

De gemaakte BitmapSource.

Kenmerken

Van toepassing op

Zie ook