fn compute_data_len(size: IntSize, row_bytes: usize) -> Option<usize>
Returns storage size required by pixel array.