Gets the text (character string) of the annotation object.
#include "ltwrappr.h"
virtual L_INT LAnnVideo::GetText(pText, puLen)
Character string to be updated with the annotation object's character string.
Pointer to a variable to updated with the text length.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Before calling this function, you must declare a variable as a pointer to a character string. Then, pass the variable in the pText parameter. This function will update the variable with the annotation object's character string.
Win32, x64.
L_INT LAnnVideo_GetTextExample()
{
LAnnVideo MyAnnVideo;
L_TCHAR szTemp[200], szFileName[100];
MyAnnVideo.SetText(MAKE_IMAGE_PATH(TEXT("video.avi")));
L_SIZE_T uFileLen = MyAnnVideo.GetTextLen();
MyAnnVideo.GetText(szFileName, &uFileLen);
wsprintf(szTemp,
TEXT("Capture File Name: %s\nCapture File Name Length: %d"),
szFileName,
uFileLen);
AfxMessageBox(szTemp);
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