Imaging.CreateBitmapSourceFromMemorySection Método

Definição

Devolve um managed BitmapSource, baseado na localização de memória não gerida fornecida.

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

Parâmetros

section
IntPtr

nativeint

Um apontador para uma secção de memória.

pixelWidth
Int32

Um inteiro que especifica a largura, em pixels, do bitmap.

pixelHeight
Int32

Um inteiro que especifica a altura, em pixels, do bitmap.

format
PixelFormat

Um valor da enumeração.

stride
Int32

O passo do bitmap.

offset
Int32

O byte desloca-se para o fluxo de memória onde a imagem começa.

Devoluções

O criou BitmapSource.

Atributos

Aplica-se a

Ver também