[]
        
(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)
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)
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)
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
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
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)
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)
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)
Parameters
Type Name Description
IntPtr rectangleRef
int stride
int bufferSize
IntPtr bufferRef