get_size_in_pixels method

get_size_in_pixels(scale, dpi)

Calculates the page size in pixels for a specified zoom factor and resolution.

def get_size_in_pixels(self, scale: float, dpi: float):
    ...
ParameterTypeDescription
scalefloatThe zoom factor (1.0 is 100%).
dpifloatThe resolution (horizontal and vertical) to convert from points to pixels (dots per inch).

Returns

The size of the page in pixels.

get_size_in_pixels(scale, horizontal_dpi, vertical_dpi)

Calculates the page size in pixels for a specified zoom factor and resolution.

def get_size_in_pixels(self, scale: float, horizontal_dpi: float, vertical_dpi: float):
    ...
ParameterTypeDescription
scalefloatThe zoom factor (1.0 is 100%).
horizontal_dpifloatThe horizontal resolution to convert from points to pixels (dots per inch).
vertical_dpifloatThe vertical resolution to convert from points to pixels (dots per inch).

Returns

The size of the page in pixels.

See Also