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
 Custom vector shapes

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
Arachnid Posted - Jan 26 2012 : 06:56:10
Is there a way to insert custom shapes (closed filled polygons) in TImageEnVect? Can't find any example.
2   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jan 28 2012 : 01:55:12
I'm sorry, at the moment custom objects aren't supported. Current implementation isn't fully functional (and undocumented).
Arachnid Posted - Jan 26 2012 : 08:18:28
Great, after some studying the source code I understand now how to do this:

//TMyVectObject is derived from TIEExtendedObject
IEVRegisterExtendedObject(TMyVectObject, 'TMyVectObject');
ImageEnVect1.ExtendedObjectToPut := 'TMyVectObject';
imageenvect1.MouseInteractVt := [miPutExtendedObject];

But on the inserting stage it draws a rectangle (MouseMove -> iekEXTENDED -> DrawBoxInserting). What is the best way to replace the paint handler on the inserting stage and draw custom shape?