ImageRotateDrawingAxis
Was this helpful?
ImageRotateDrawingAxis( name, angle [, x] [, y] )Or as a member:
someImage.rotateDrawingAxis( angle [, x] [, y] )name
any
Yes
The image to rotate. Can be a BoxImage object or image name.
angle
numeric
Yes
The angle (in degrees) to rotate the image.
x
numeric
No
0
The x-coordinate of the rotation axis.
y
numeric
No
0
The y-coordinate of the rotation axis.
BoxImage — The rotated image object.
Rotates an image by the specified angle (in degrees) around a custom axis defined by the x and y coordinates. Useful for advanced graphics operations where rotation needs to occur around a specific point rather than the default center.
ImageRotate
ImageResize
ImageFlip
The name argument can be a BoxImage object or the name of an image variable in the current context.
The operation modifies the image in place when used as a member function.
Returns the modified image object for chaining or further processing.
The x and y arguments specify the axis of rotation; defaults to (0, 0) if not provided.
Was this helpful?
Was this helpful?
// Rotate image 90 degrees around axis (100, 50)
result = ImageRotateDrawingAxis( myImage, 90, 100, 50 );
// As a member function
myImage.rotateDrawingAxis( 45, 200, 100 );