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
 location of Objects

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
pierrotsc Posted - Jun 24 2013 : 12:55:02
Is there a way to memorize the location of ellipses? I need to create registration marks on images I print. When i drop 4 circle on an image (At the corner), i would like to memorize their location. Like that next time I print another image, I can recall the location of the 4 ellipses.

Can it be done?

I was thinking about saving a layer with only the objects inside it and then recall them.
The location can be saved in memory. When the program closes, it is ok to be lost.
Thanks.
P
2   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - Jun 24 2013 : 13:41:41
Thanks Bill. I like the stream approach. Let me work on that.
P
w2m Posted - Jun 24 2013 : 13:21:48
You could save the object positions (Left and Top) to an ini file then reload them biased on the Left and Top values in the ini file.

iterate through the objects to save the object positions:
ImageEnVect1.ObjLeft[hObj];
ImageEnVect1.ObjTop [hObj];
then restore the object positions by reading
ImageEnVect1.ObjLeft[hObj];
ImageEnVect1.ObjTop [hObj];

You could also save the objects and there positions with SaveToFileIEV, then restore them with LoadFromFileIEV.

You could also save the objects and positions to a memory stream with SaveToStreamIEV and then reload the objects with LoadFromStreamIEV.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html