But when I call SaveToIEV and then reload the file using LoadFromIEV, the highlight object is not saved. All other annotation objects are saved however.
I think it is the issue of CopyObjectsToBack. Calling this does not save the objects that are highlighted and therefore saving to a file does not show up.
When you copy the objects to back there are no objects at all as they are merged into the background layer 0. If you need to keep the objects intact then do not CopyObjectsToBack at all.
Yes, I am calling CopyObjectToBack to flatten the image and then save it to a file, all the "objects" are showing in the final bitmap. I know they are not objects anymore but they should show in the bitmap. Everything shows but not "objects" that are highlights. If you can try to create a highlight object in TImageEnVect, save the objects to a IEV file, then load back the file after calling RemoveAllObjects. Then do a CopyObjectsToBack and save the flatten image to a bitmap file. The bitmap file does not show the highlight.
Sorry Andy, forgot to update this post. Yes, we have resolved the issue. The fix will be in v5.1.2, but you might want to email me for a source update now.