virtual L_INT LAnnNote::GetTextRotate(puTextRotate)
Gets a value that indicates whether the text of an annotation object is rotated.
Address of the variable to be updated with a value that indicates whether the text is rotated, and if so, by how many degrees. Possible values are:
Value | Meaning |
---|---|
TEXTROTATE_0 | [0] Do not rotate the text. |
TEXTROTATE_90 | [90] The text is rotated 90 degrees counter clockwise. |
TEXTROTATE_180 | [180] The text is rotated 180 degrees counter clockwise. |
TEXTROTATE_270 | [270] The text is rotated 270 degrees counter clockwise. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Win32, x64.
Sample for LAnnNote::SetTextRotate, LAnnNote::GetTextRotate
This example changes the text rotation of a note annotation.
L_INT LAnnNote_GetTextRotateExample(LAnnNote *pLNote)
{
L_INT nRet;
L_UINT uTextRotate;
L_TCHAR szMsg[100];
L_UINT uType;
nRet = pLNote->GetTextRotate(&uTextRotate);
if(nRet != SUCCESS)
return nRet;
switch(uTextRotate)
{
case TEXTROTATE_0:
uTextRotate = TEXTROTATE_90;
break;
case TEXTROTATE_90:
uTextRotate = TEXTROTATE_180;
break;
case TEXTROTATE_180:
uTextRotate = TEXTROTATE_270;
break;
case TEXTROTATE_270:
uTextRotate = TEXTROTATE_0;
break;
}
nRet= pLNote->SetTextRotate(uTextRotate, 0);
if (nRet != SUCCESS)
{
uType = pLNote->GetType();
wsprintf(szMsg, TEXT("SetTextRotate Error: %d on object type[%d]\n"), nRet, uType);
MessageBox(NULL, szMsg, TEXT("Error"), MB_OK);
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.