mlx.data.Buffer.image_rotate#
- Buffer.image_rotate(self: mlx.data._c.Buffer, key: str, angle: float, crop: bool = False, output_key: str = '') mlx.data._c.Buffer #
Rotate an image around its center point.
- Parameters:
key (str) – The sample key that contains the array we are operating on.
angle (float) – The angle of rotation in degrees.
crop (bool) – Whether to crop the result to the original image’s size. (default: False)
output_key (str) – If it is not empty then write the result to this key instead of overwriting
key
. (default: ‘’)