Imaging.CreateBitmapSourceFromMemorySection Metod

Definition

Returnerar en hanterad BitmapSource, baserat på den angivna ohanterade minnesplatsen.

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

Parametrar

section
IntPtr

nativeint

En pekare till ett minnesavsnitt.

pixelWidth
Int32

Ett heltal som anger bitmappens bredd i bildpunkter.

pixelHeight
Int32

Ett heltal som anger bitmappens höjd, i bildpunkter.

format
PixelFormat

Ett värde för uppräkningen.

stride
Int32

Bitmappens steg.

offset
Int32

Byteförskjutningen till minnesströmmen där avbildningen startar.

Returer

Den skapade BitmapSource.

Attribut

Gäller för

Se även