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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 CopyObjectsToBack | miputruler issues

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
zizi Posted - Jun 06 2015 : 03:46:17
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

4   L A T E S T    R E P L I E S    (Newest First)
Sullivan Posted - Aug 12 2017 : 05:59:21

Thank you!
xequte Posted - Aug 09 2017 : 17:05:08
Hi

This issue was resolved in 6.3.1.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
VasjaS Posted - Aug 09 2017 : 08:12:28
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
xequte Posted - Jun 09 2015 : 19:04:52
HI

Can you please advise the specific steps to reproduce this.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com