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
 CopyObjectsToBack | miputruler issues
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

zizi

Iran
4 Posts

Posted - Jun 06 2015 :  03:46:17  Show Profile  Reply
Hi Friends

i haveimageen 5.2.0 and when i use CopyObjectsToBack ,
i have some problems :

* sometimes line ObjPenWidth dont draw
* sometimes line lenght or height is not compelete
* 90% of times the text of put ruller dont draw

tip : mitext dont have problem

have a nice time

xequte

39053 Posts

Posted - Jun 09 2015 :  19:04:52  Show Profile  Reply
HI

Can you please advise the specific steps to reproduce this.



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

VasjaS

Slovenia
1 Posts

Posted - Aug 09 2017 :  08:12:28  Show Profile  Reply
Hi,

I use ImageEn version 6.0.1 and this issue is not solved. I assume in this sense, version 7.0 is not different.

Since the suggested solution here is not what we were looking for, I had to dig in the source a little. I believe I solved the issue and I am posting the solution here so it could help somebody else and/or be implemented in one of the next versions.

Anyway, the main problem is in the method TImageEnVect.GetObjectBoundingBox which for an iekRULER object does not take into consideration the label part but only the line itself.

Also when drawing objects to Bitmaps, the method TImageEnVect.DrawObject effectively creates a clipping rectangle by calling CreateROICanvas based on the rectangle, returned by GetObjectBoundingBox.

I solved this issue by disabling the creation of the "clipping" rectangle for rulers by changing the line

if copyingBack then
to
if copyingBack and (aobj.Kind <> iekRULER) then

I understand that the ideal solution would be to fix the TImageEnVect.GetObjectBoundingBox method, but the given modification works for all my tests.


VasjaS
Go to Top of Page

xequte

39053 Posts

Posted - Aug 09 2017 :  17:05:08  Show Profile  Reply
Hi

This issue was resolved in 6.3.1.


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

Sullivan

USA
1 Posts

Posted - Aug 12 2017 :  05:59:21  Show Profile  Reply

Thank you!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: