LEADTOOLS provides several methods for manipulating annotation objects so they are flipped, reversed, or rotated.
Use the LAnnotation::Flip function to flip one or more annotation objects, top to bottom. Objects that contain text cannot be flipped or reversed. If one or more such objects is in a group of objects that is flipped or reversed on a common axis, the text will move to the new position, but will retain its orientation.
Use the LAnnotation::Reverse function to reverse one or more annotation objects, left to right. Objects that contain text cannot be flipped or reversed. If one or more such objects is in a group of objects that is flipped or reversed on a common axis, the text will move to the new position, but will retain its orientation.
Use the LAnnotation::Rotate function to rotate one or more annotation objects.
The LAnnotation::GetRotateOptions and the LAnnotation::SetRotateOptions functions are used to control the interface used for performing rotations. Enable these functions by calling the LAnnotation::SetOptions function and passing OPTIONS_NEW_ROTATE. For more information, refer to Annotation Features.
Certain objects cannot be rotated (see the following list). If one or more such objects are in a group of objects that is rotated around a common center, those objects will move to new positions, but will retain their orientation.
Flipping and Reversing:
All annotation objects flip or reverse with the following notes:
ANN_OBJECT_AUDIO - metafile does not flip/reverse
ANN_OBJECT_BUTTON - text itself does not flip/reverse
ANN_OBJECT_ENCRYPT - metafile does not flip/reverse
ANN_OBJECT_FREEHANDHOTSPOT -- metafile does not flip/reverse
ANN_OBJECT_HOTSPOT - metafile does not flip/reverse
ANN_OBJECT_NOTE - text itself does not flip/reverse
ANN_OBJECT_POINT - if the point uses an image, the image does not flip/reverse
ANN_OBJECT_PUSHPIN - text itself does not flip/reverse
ANN_OBJECT_RTF - text itself does not flip/reverse
ANN_OBJECT_STAMP the text flips/reverses, but the image and metafile do not flip/reverse
ANN_OBJECT_TEXT - text itself does not flip/reverse
ANN_OBJECT_TEXTPOINTER - the tail flips, but the text does not flip/reverse
ANN_OBJECT_VIDEO - metafile does not flip/reverse
Rotating:
All objects rotate EXCEPT for the following objects:
ANN_OBJECT_AUDIO
ANN_OBJECT_BUTTON
ANN_OBJECT_ENCRYPT
ANN_OBJECT_FREEHANDHOTSPOT the object rotates, but not the metafile
ANN_OBJECT_HOTSPOT
ANN_OBJECT_NOTE
ANN_OBJECT_POINT
ANN_OBJECT_PUSHPIN
ANN_OBJECT_RTF
ANN_OBJECT_TEXTPOINTER
ANN_OBJECT_VIDEO
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.