ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.5.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 System.Integer, _
       ByVal buffer As System.IntPtr, _
       ByVal rowStride As System.Integer, _
       Optional ByVal totalSizeInBytes As System.Integer _
    ) 
    public void WritePixels( 
       System.int lineCount,
       System.IntPtr buffer,
       System.int rowStride,
       System.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