def get_resolution(self, use_square_pixels=False):
    'Get the image dimensions corresponding to this resolution.\n\n        :param use_square_pixels: Whether to strech the resulting resolution to square pixels.\n        :type use_square_pixels: bool\n        :return: A tuple (width, height)\n        :rtype: tuple\n        '
    width = self.width
    height = self.height
    if use_square_pixels:
        width = int(math.ceil((self.square_pixel_conversion_ratio_width * self.width)))
        height = int(math.ceil((self.square_pixel_conversion_ratio_height * self.height)))
    return (width, height)
Get the image dimensions corresponding to this resolution.

:param use_square_pixels: Whether to strech the resulting resolution to square pixels.
:type use_square_pixels: bool
:return: A tuple (width, height)
:rtype: tuple
def get_resolution(self, use_square_pixels=False):
    'Get the image dimensions corresponding to this resolution.\n\n        :param use_square_pixels: Whether to strech the resulting resolution to square pixels.\n        :type use_square_pixels: bool\n        :return: A tuple (width, height)\n        :rtype: tuple\n        '
    width = self.width
    height = self.height
    if use_square_pixels:
        width = int(math.ceil((self.square_pixel_conversion_ratio_width * self.width)))
        height = int(math.ceil((self.square_pixel_conversion_ratio_height * self.height)))
    return (width, height)