from typing import Tuple


def scale_xy_res_and_size(xy_res: Tuple[float, float],
                          size: Tuple[int, int],
                          xy_scale: Tuple[float, float]) \
        -> Tuple[Tuple[float, float], Tuple[int, int]]:
    """
    Scale given *xy_res* and *size* using *xy_scale*.
    Make sure, size components are not less than 2.
    """
    x_res, y_res = xy_res
    x_scale, y_scale = xy_scale
    w, h = size
    w, h = round(x_scale * w), round(y_scale * h)
    return ((x_res / x_scale,
             y_res / y_scale),
            (w if w >= 2 else 2,
             h if h >= 2 else 2))