Imagick::setResolution

Sets the image resolution

&reftitle.description; public `bool` `Imagick::setResolution` `float` `x_resolution` `float` `y_resolution`

Sets the image resolution.

&reftitle.parameters;

`x_resolution`

- The horizontal resolution.

`y_resolution`

- The vertical resolution.

&reftitle.returnvalues;

&imagick.return.success;

&reftitle.notes;

`Imagick::setResolution` must be called before loading or creating an image.

&reftitle.seealso;

- `Imagick::setImageResolution`
- `Imagick::getImageResolution`