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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 how can i draw a Outerlined text?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

stkwon

20 Posts

Posted - Jan 08 2018 :  12:36:26  Show Profile  Reply
i want draw a outline text with TImageEnVect?

like a this picture..



xequte

39053 Posts

Posted - Jan 08 2018 :  18:05:45  Show Profile  Reply
I'm afraid there is no easy way to do this at present.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

spetric

Croatia
308 Posts

Posted - Jan 09 2018 :  15:24:11  Show Profile  Reply
Hi,

As Nigel said, currently there is no easy way to do it, but there is
a workaround. It's not elegant, but I use it when I want to draw
strokes around selection.

1. Render your text on some ImageEnVect (it can be hidden). Use let's say white background with black text.
2. Programmatically use magic wand selection (with global option) and select
a point inside one letter.
3. Collect selection points and create polylines and you have outlined letters.
You can then transfer polylines to another (visible) ImageEnVect.

In my case, I draw a brush stroke around selection (actually through polylines points):



If you want, I can post a code on how to create polylines from selection points (C++). Of course, the real stuff would be to make this process automated without rendering text to some hidden ImageEnVect.

HTH,
Siniša
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: