def resize_region( self, region: Region, left: int = 0, top: int = 0, right: int = 0, bottom: int = 0, ) -> Region: """ Return a resized new ``Region`` from a given region. Extends edges the given amount outward from the center, i.e. positive left values move the left edge to the left. :param region: The region to resize. :param left: Amount of pixels to resize left edge. :param top: Amount of pixels to resize top edge. :param right: Amount of pixels to resize right edge. :param bottom: Amount of pixels to resize bottom edge. Usage examples: .. code-block:: robotframework ${region}= Find Element ocr:"Net Assets" ${resized_region}= Resize Region ${region} bottom=10 .. code-block:: python region = desktop.find_element('ocr:"Net Assets"') resized_region = desktop.resize_region(region, bottom=10) """ return region.resize(left, top, right, bottom)
def resize_region( self, region: Region, left: Optional[int] = 0, top: Optional[int] = 0, right: Optional[int] = 0, bottom: Optional[int] = 0, ) -> Region: """ Return a resized new ``Region`` from a given region. :param region: the region to resize. :param left: amount of pixels to resize left edge. :param top: amount of pixels to resize top edge. :param right: amount of pixels to resize right edge. :param bottom: amount of pixels to resize bottom edge. """ return region.resize(left, top, right, bottom)
def resize_region( self, region: Region, left: int = 0, top: int = 0, right: int = 0, bottom: int = 0, ) -> Region: """ Return a resized new ``Region`` from a given region. Extends edges the given amount outward from the center, i.e. positive left values move the left edge to the left. :param region: The region to resize. :param left: Amount of pixels to resize left edge. :param top: Amount of pixels to resize top edge. :param right: Amount of pixels to resize right edge. :param bottom: Amount of pixels to resize bottom edge. """ return region.resize(left, top, right, bottom)