def dimension_to_bounds(x, y, width, height):
    """
    Convert a positioned rectangular section into a bounding box coordinates
    indicating the top left and bottom right.

    :param x: x position or rectangular section
    :param y: y position or rectangular section
    :param width: width of section
    :param height: height of section
    :return: a tuple representing the top left and bottom right corners
        (x1, y1, x2, y2)
    """
    return x, y, x + width, y + height