#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnGetRotateAngle(hObject, pdAngle)
Gets the rotation angle for an annotation object.
Handle to the annotation object.
Pointer to a double variable to be updated with the rotation angle.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Call this function to get the rotation angle for a particular annotation object.
The angle is in radians, and uses the following convention.
The possible range of rotate values is (-Pi) ... (Pi)
A rotation in the clockwise direction is considered a positive rotation.
A rotation in the counter-clockwise direction is considered a negative rotation.
For example, if a rectangle is rotated 90 degrees in the counter clockwise direction, this function will get (-PI/2) for the rotation angle. If a rectangle is rotated 90 degrees in the clockwise direction, this function will get PI/2 for the rotation angle. If a rectangle is rotated 270 degrees in the counter clockwise direction, this is equivalent to 90 degrees in the clockwise direction so the rotation value returned is PI/2.
This function is only valid for the following annotation object types:
If the function is used with an object that is not listed, it returns SUCCESS with *pdAngle
equal to 0.
Required DLLs and Libraries
Win32, x64.
This example displays the rotation angle for the annotation hObject in radians and degrees.
L_INT AnnGetRotateAngleExample(HANNOBJECT hObject)
{
L_INT nRet;
L_DOUBLE dAngle;
L_TCHAR szMsg[200];
nRet = L_AnnGetRotateAngle(hObject, &dAngle);
if (nRet == SUCCESS)
{
_stprintf_s(szMsg, TEXT("Angle of rotation: Radians[%lf] Degrees[%f]\n"),
dAngle,
dAngle *180 / 3.1415926535
);
MessageBox(NULL, szMsg, TEXT(""), MB_OK);
}
else
return nRet;
return SUCCESS;
}
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.