[]
        
(Showing Draft Content)

C1.Util.DX.WIC.BitmapSource.CopyPixels

CopyPixels Method

CopyPixels(RectL, int, DataPointer)

Instructs the object to produce pixels.

Declaration
public void CopyPixels(RectL rectangle, int stride, DataPointer dataPointer)
Public Sub CopyPixels(rectangle As RectL, stride As Integer, dataPointer As DataPointer)
Parameters
Type Name Description
RectL rectangle

The rectangle to copy. A null value specifies the entire bitmap.

int stride

The stride of the bitmap

DataPointer dataPointer

A reference to the buffer.

CopyPixels(int, DataPointer)

Instructs the object to produce pixels.

Declaration
public void CopyPixels(int stride, DataPointer dataPointer)
Public Sub CopyPixels(stride As Integer, dataPointer As DataPointer)
Parameters
Type Name Description
int stride

The stride of the bitmap

DataPointer dataPointer

A reference to the buffer.

CopyPixels(int, IntPtr, int)

Instructs the object to produce pixels.

Declaration
public void CopyPixels(int stride, IntPtr dataPointer, int size)
Public Sub CopyPixels(stride As Integer, dataPointer As IntPtr, size As Integer)
Parameters
Type Name Description
int stride

The stride of the bitmap

IntPtr dataPointer

A reference to the buffer.

int size

Size of the buffer in bytes.

CopyPixels<T>(RectL, T[])

Instructs the object to produce pixels.

Declaration
public void CopyPixels<T>(RectL rectangle, T[] output) where T : struct
Public Sub CopyPixels(Of T As Structure)(rectangle As RectL, output As T())
Parameters
Type Name Description
RectL rectangle

The rectangle to copy.

T[] output

The destination array. The size of the array must be sizeof(pixel) * rectangle.Width * rectangle.Height

Type Parameters
Name Description
T

CopyPixels<T>(T[])

Instructs the object to produce pixels.

Declaration
public void CopyPixels<T>(T[] output) where T : struct
Public Sub CopyPixels(Of T As Structure)(output As T())
Parameters
Type Name Description
T[] output

The destination array. The size of the array must be sizeof(pixel) * Width * Height

Type Parameters
Name Description
T

CopyPixels(RectL, byte[], int)

Instructs the object to produce pixels.

Declaration
public void CopyPixels(RectL rectangle, byte[] output, int stride)
Public Sub CopyPixels(rectangle As RectL, output As Byte(), stride As Integer)
Parameters
Type Name Description
RectL rectangle

The rectangle to copy.

byte[] output

The destination array. The size of the array must be sizeof(pixel) * Width * Height

int stride

The stride (number of bytes per row).

CopyPixels(byte[], int)

Instructs the object to produce pixels.

Declaration
public void CopyPixels(byte[] output, int stride)
Public Sub CopyPixels(output As Byte(), stride As Integer)
Parameters
Type Name Description
byte[] output

The destination array. The size of the array must be sizeof(pixel) * Width * Height

int stride

The stride (number of bytes per row).

CopyPixels(IntPtr, int, int, IntPtr)

HRESULT IWICBitmapSource::CopyPixels([In] const void* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer)

Declaration
public void CopyPixels(IntPtr rectangleRef, int stride, int bufferSize, IntPtr bufferRef)
Public Sub CopyPixels(rectangleRef As IntPtr, stride As Integer, bufferSize As Integer, bufferRef As IntPtr)
Parameters
Type Name Description
IntPtr rectangleRef
int stride
int bufferSize
IntPtr bufferRef