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
 TImageEnVect: How to create/use my own template

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
atlandev.mq Posted - Feb 06 2012 : 12:27:36
Is it possible to automatically draw with TimageEnVect a star, an arrow or else? The exemble provides inserts an image but I would like to create an object 100% vector.
Such as
buttonclick(sender: TObject);
begin
Self.ImageEnVect.AddNewObject(iekMyStar, Rect(10,10,20,20), clRed);
end;
best regards.
4   L A T E S T    R E P L I E S    (Newest First)
atlandev.mq Posted - Feb 08 2012 : 05:54:43
Cool, thanks a lot.
fab Posted - Feb 08 2012 : 00:44:32
quote:
How could keep the ratio in polyline ?


User can press and hold ALT key while resizing, or you can force it setting:

ImageEnVect1.ForceALTkey := true;

atlandev.mq Posted - Feb 07 2012 : 20:34:30
Thank for reply. It works fine.
Other day, Other problem...
How could keep the ratio in polyline ? I want to let users change the height or width but keeping the same ratio.
I've tried with "OnObjectMoveResize" but calculate in real time doesn't seem to be the solution.
Suggestion ?
Best regard and good work. Cheer.
fab Posted - Feb 07 2012 : 00:46:33
It is only possible to draw a polygon. For example this draws a star:

  ImageEnVect1.SetObjPolylinePoints(-1, [Point(0,65), Point(50,80), Point(65,130), Point(80,80), Point(130,65), Point(80,50), Point(65,0), Point(50,50), Point(0,65)]);
  ImageEnVect1.ObjKind[-1] := iekPOLYLINE;
  ImageEnVect1.AddNewObject();