Hjg.Pngcs.PngWriter.WriteRowInt C# (CSharp) Method

WriteRowInt() public method

Writes a full image row.
This must be called sequentially from n=0 to n=rows-1 One integer per sample , in the natural order: R G B R G B ... (or R G B A R G B A... if has alpha) The values should be between 0 and 255 for 8 bitspc images, and between 0- 65535 form 16 bitspc images (this applies also to the alpha channel if present) The array can be reused.
public WriteRowInt ( int newrow, int rown ) : void
newrow int Array of pixel values
rown int Number of row, from 0 (top) to rows-1 (bottom)
return void
        public void WriteRowInt(int[] newrow, int rown)
        {
            prepareEncodeRow(rown);
            encodeRowFromInt(newrow);
            filterAndSend(rown);
        }