Aspose.Imaging for Java simplifies complex image operations with easy-to-use methods, including the RotateFlip method in its base class Image. Regardless of the image format, the library streamlines the process of rotating and flipping images for various applications.
Image
classImage.RotateFlipType
method with appropriate RotateFlipType
valueImage.Save
method to save or export the resultThe RotateFlipType Enumeration specifies the type of rotation and flip to apply to an image. It includes options for rotation by 90/180/270 degrees and horizontal/vertical flipping.
The rotation angle parameter determines the degree of rotation. Positive values rotate the image clockwise, while negative values perform an anticlockwise rotation.
Yes, the RasterImage.Rotate method allows users to specify a background color (Color) for the rotated image. This color fills the areas created during the rotation process.