image-js
Version:
Image processing and manipulation in JavaScript
10 lines • 464 B
TypeScript
import { Image } from '../Image.js';
export type RotateAngle = 90 | 180 | 270 | -90 | -180 | -270;
/**
* Rotates an image in multiples of 90 degrees.
* @param image - The image to rotate.
* @param angle - The angle to rotate the image by. Positive values rotate clockwise, negative values rotate counter-clockwise.
* @returns - The rotated image.
*/
export declare function rotate(image: Image, angle: RotateAngle): Image;
//# sourceMappingURL=rotate.d.ts.map