set_resolution method

set_resolution

Sets the resolution for this RasterImage.

def set_resolution(self, dpi_x, dpi_y):
    ...
ParameterTypeDescription
dpi_xfloatThe horizontal resolution, in dots per inch, of the RasterImage.
dpi_yfloatThe vertical resolution, in dots per inch, of the RasterImage.

See Also