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
 ImageEnVector draw Vectorgram by userdate.

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
diaorp Posted - Nov 20 2011 : 23:55:14
I want to draw a line in ImageEnVector not using mouse interative but useing my own date. For example, I give the start point(x1,y1) and the end point (x2,y2), then draw a line. How can i achieve it.Thank u.
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Nov 21 2011 : 10:48:47
Property ObjLayer[] specifies the object layer (where it is displayed and the base of its coordinates).
Assuming you have a layer 1 (the layer just over the background layer), you can create a line over it writing:

ImageEnVect1.ObjLayer[-1] := 1;
ImageEnVect1.AddNewObject(iekLINE, Rect(0,0,200,80), clBlack);


Index -1 means "index of next object that is created.
diaorp Posted - Nov 21 2011 : 06:42:28
Thanks for helping me solve the problem above. There is another question , how to draw a vector line on a layer ? As i want to move the layer by using the mouse.
fab Posted - Nov 21 2011 : 01:11:10
You have to set object properties then call AddNewObject. For example:

ImageEnVect1.AddNewObject(iekLINE, Rect(0,0,200,80), clBlack);