[]
        
(Showing Draft Content)

C1.Util.DX.WIC.BitmapFrameEncode.WritePixels

WritePixels Method

WritePixels(int, DataRectangle, int)

Encodes the frame scanlines.

Declaration
public void WritePixels(int lineCount, DataRectangle buffer, int totalSizeInBytes = 0)
Parameters
Type Name Description
int lineCount

The number of lines to encode.

DataRectangle buffer

A data buffer containing the pixels to copy from.

int totalSizeInBytes

Total size in bytes of pixels to write. If == 0, size is calculated with lineCount * rowStride.

Remarks

Successive WritePixels calls are assumed to be sequential scanline access in the output image.

WritePixels(int, IntPtr, int, int)

Encodes the frame scanlines.

Declaration
public void WritePixels(int lineCount, IntPtr buffer, int rowStride, int totalSizeInBytes = 0)
Parameters
Type Name Description
int lineCount

The number of lines to encode.

IntPtr buffer

A data buffer containing the pixels to copy from.

int rowStride

The stride of one row.

int totalSizeInBytes

Total size in bytes of pixels to write. If == 0, size is calculated with lineCount * rowStride.

Remarks

Successive WritePixels calls are assumed to be sequential scanline access in the output image.

WritePixels<T>(int, int, T[])

Encodes the frame scanlines.

Declaration
public void WritePixels<T>(int lineCount, int stride, T[] pixelBuffer) where T : struct
Parameters
Type Name Description
int lineCount

The number of lines to encode.

int stride

The stride of the image pixels.

T[] pixelBuffer

A reference to the pixel buffer.

Type Parameters
Name Description
T
Remarks

Successive WritePixels calls are assumed to be sequential scanline access in the output image.

WritePixels(int, int, int, IntPtr)

HRESULT IWICBitmapFrameEncode::WritePixels([In] unsigned int lineCount,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In, Buffer] void* pbPixels)

Declaration
public void WritePixels(int lineCount, int stride, int bufferSize, IntPtr pixelsRef)
Parameters
Type Name Description
int lineCount
int stride
int bufferSize
IntPtr pixelsRef