ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX.WIC Namespace / BitmapFrameEncode Class / WritePixels Method / WritePixels(Int32,IntPtr,Int32,Int32) Method

The number of lines to encode.

A data buffer containing the pixels to copy from.
The stride of one row.
Total size in bytes of pixels to write. If == 0, size is calculated with lineCount * rowStride.

In This Topic
    WritePixels(Int32,IntPtr,Int32,Int32) Method
    In This Topic

    Encodes the frame scanlines.

    Syntax
    'Declaration
     
    Public Overloads Sub WritePixels( _
       ByVal lineCount As Integer, _
       ByVal buffer As IntPtr, _
       ByVal rowStride As Integer, _
       Optional ByVal totalSizeInBytes As Integer _
    ) 
    public void WritePixels( 
       int lineCount,
       IntPtr buffer,
       int rowStride,
       int totalSizeInBytes
    )

    Parameters

    lineCount

    The number of lines to encode.

    buffer
    A data buffer containing the pixels to copy from.
    rowStride
    The stride of one row.
    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.

    See Also