[]
Encodes the frame scanlines.
public void WritePixels(int lineCount, DataRectangle buffer, int totalSizeInBytes = 0)
| 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. |
Successive WritePixels calls are assumed to be sequential scanline access in the output image.
Encodes the frame scanlines.
public void WritePixels(int lineCount, IntPtr buffer, int rowStride, int totalSizeInBytes = 0)
| 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. |
Successive WritePixels calls are assumed to be sequential scanline access in the output image.
Encodes the frame scanlines.
public void WritePixels<T>(int lineCount, int stride, T[] pixelBuffer) where T : struct
| 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. |
| Name | Description |
|---|---|
| T |
Successive WritePixels calls are assumed to be sequential scanline access in the output image.
HRESULT IWICBitmapFrameEncode::WritePixels([In] unsigned int lineCount,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In, Buffer] void* pbPixels)
public void WritePixels(int lineCount, int stride, int bufferSize, IntPtr pixelsRef)
| Type | Name | Description |
|---|---|---|
| int | lineCount | |
| int | stride | |
| int | bufferSize | |
| IntPtr | pixelsRef |