Blog: Tech Talk

agsdix-fas fa-home

Blog: Home

agsdix-fas fa-pen-fancy

Blog: CEO's Corner

agsdix-fas fa-code

Blog: Tech Talk

Blog: Product Releases

agsdix-fas fa-chalkboard-teacher

Blog: Viewing

Blog: Conversion

arrow left circle icon Blog: Tech Talk

Using Double Byte Characters with RasterMaster Annotations

by | Apr 24, 2012


Double byte characters such as Asian character sets are now supported in the RasterMaster for Java™ annotation library.
To use double byte annotations, set the double_byte field to true as in the following example:

sann = new SnowAnn();
sann.double_byte = true;

When creating any type of text annotation object, space will be reserved to allow for double byte characters. Double byte characters can be typed in the active text controls.

When saving out to an annotation file, the double byte characters will be preserved. For the XML annotation file format, a tag for double byte characters will also be written to the file. When reading in this file, the double_byte field will be read from the file and updated. If you are saving and reading the binary RasterMaster annotation file format, you will have to set the double_byte field to true to allow the library to read and save the file properly.