ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Highlight Objects TImageEnVect not saving
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - May 21 2014 :  03:37:49  Show Profile  Reply
I create highlight objects in TImageEnVect as follows:

KImageEnVect1.MouseInteractVt := [ miPutBox ];
KImageEnVect1.ObjBoxHighlight [ -1 ] := true;
KImageEnVect1.ObjBrushColor [ -1 ] := clYellow;
KImageEnVect1.ObjBrushStyle [ -1 ] := bsSolid;

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.

Where did I go wrong?

Thanks very much in advance.

Andy

AndyColmes

USA
351 Posts

Posted - May 21 2014 :  09:20:38  Show Profile  Reply
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.

Can you verify?
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 21 2014 :  09:51:08  Show Profile  Reply
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.

William Miller
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - May 21 2014 :  11:58:36  Show Profile  Reply
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.
Go to Top of Page

xequte

38517 Posts

Posted - May 22 2014 :  19:06:27  Show Profile  Reply
Hi Andy

I see what you mean. I can reproduce this and we are currently investigating.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Jun 09 2014 :  23:25:39  Show Profile  Reply
Hi Nigel,

Any updates on this? Thanks.
Go to Top of Page

xequte

38517 Posts

Posted - Jun 10 2014 :  15:01:20  Show Profile  Reply
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.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: