The annotation DLL provided with the English version of LEADTOOLS produces annotation automation dialogs with English strings. To convert the annotation automation dialogs to other languages, it is necessary to modify the dialog strings and, depending on the language, the font size and name. For languages that use English characters, the dialogs can be translated by just changing the dialog strings. This can be done as follows:
LAnnAutomation::SetAutoText(ANNAUTOTEXT\_XXX, "Translated String");For some languages, such as Japanese and Chinese, special fonts are required to display the characters of that language. These characters are often larger than English characters. Consequently, it is necessary to change the dialog strings, the font name and the font size. For example, to use Japanese strings with the English annotation DLL, the following must be done:
Change the font size and name for the automation dialogs as follows:
// Change the font size.
// The English version uses 8 as a default.
// The Japanese version uses 9.
LAnnAutomation::SetAutoDialogFontSize(9);
//Change the font name.
LAnnAutomation::SetAutoText(ANNAUTOTEXT_DIALOG_FONT, "Japanese Font Name");
Change all the automation strings as follows:
LAnnAutomation::SetAutoText(ANNAUTOTEXT_XXX, "New Japanese String.");
Change the default font to be used for all annotation objects (except buttons) created with this automation object, as follows.
LAnnotation::SetFontName("Japanese Font Name");
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.