image-js
Version:
Image processing and manipulation in JavaScript
24 lines • 859 B
TypeScript
import type { Image, ImageCoordinates } from '../Image.js';
import type { Point } from '../utils/geometry/points.js';
import type { TransformOptions } from './transform.js';
export interface TransformRotateOptions extends TransformOptions {
/**
* Specify the rotation center point as a predefined string or a Point.
* @default `'center'`.
*/
center?: ImageCoordinates | Point;
/**
* Scaling factor for the rotated image.
* @default `1`
*/
scale?: number;
}
/**
* Rotate an image anti-clockwise of a given angle.
* @param image - Original image.
* @param angle - Angle in degrees.
* @param options - Rotate options.
* @returns A new rotated image.
*/
export declare function transformRotate(image: Image, angle: number, options?: TransformRotateOptions): Image;
//# sourceMappingURL=transformRotate.d.ts.map