Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Rotate

Rotate Command IP Command Grooper.IP

Rotates an image by a specified angle, allowing for precise orientation adjustments within a document processing workflow.

Remarks

The Rotate command is used to rotate images by a user-defined angle, enabling correction of orientation issues or the application of custom rotations as part of image preprocessing. This is particularly useful for aligning scanned documents, correcting misaligned pages, or preparing images for downstream processing steps that require a specific orientation.

Supported Pixel Formats

The Rotate command supports a wide range of pixel formats, including binary (black and white), grayscale, and color images. This flexibility ensures compatibility with most document and image types encountered in Grooper workflows.

How the Command Works

When configured, Rotate applies a geometric transformation to the input image, rotating it by the angle specified in the 'Rotation Angle' property. The rotation is performed around the center of the image, and the resulting image is automatically resized as needed to ensure that no content is clipped. The background of any newly exposed areas can be filled with a specified color, if supported by the configuration.

The rotation angle can be set to any value, including fractional degrees, allowing for both standard (e.g., 90°, 180°) and fine-grained adjustments. This is useful for correcting minor misalignments or for rotating images to a non-standard orientation as required by specific business processes.

Configuration Guidance

To configure Rotate, set the 'Rotation Angle' property to the desired value. For example, to rotate an image 90 degrees clockwise, set the angle to 90. For counterclockwise rotation, use negative values (e.g., -90). Fractional values such as 1.5 can be used for fine adjustments. If the command supports background color selection, configure the 'Background Color' property as needed to control the fill color of any exposed areas.

Properties

NameTypeDescription
General
Command Info

Used By

Notification