BitMiracle.LibJpeg.Classic.Internal.jpeg_c_prep_controller.expand_bottom_edge C# (CSharp) Method

expand_bottom_edge() private static method

Expand an image vertically from height input_rows to height output_rows, by duplicating the bottom row.
private static expand_bottom_edge ( byte image_data, int rowsOffset, int num_cols, int input_rows, int output_rows ) : void
image_data byte
rowsOffset int
num_cols int
input_rows int
output_rows int
return void
        private static void expand_bottom_edge(byte[][] image_data, int rowsOffset, int num_cols, int input_rows, int output_rows)
        {
            for (int row = input_rows; row < output_rows; row++)
                JpegUtils.jcopy_sample_rows(image_data, rowsOffset + input_rows - 1, image_data, row, 1, num_cols);
        }
    }