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
 text outline/border
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gts6

USA
5 Posts

Posted - Apr 04 2013 :  17:15:58  Show Profile  Reply
anyone know how to make text appear with a border around only the letters?

i am using imageEnVect, objkind is iekTEXT.

nothing seems to work. i know i can normally accomplish this without imageEn by using beginpath/endpath/strokepath to outline the text.

but how can this be done with imageEnVect?

w2m

USA
1990 Posts

Posted - Apr 07 2013 :  09:12:12  Show Profile  Reply
To have a border visible with a iekTEXT object you have to set the PenColor and PenWidth:

procedure TForm1.PenColor1Change(Sender: TObject);
var
  i: integer;
  hObj: integer;
begin
  with ImageEnVect1 do
    for i := -1 to SelObjectsCount - 1 do
    begin
      if i >= 0 then
      begin
        ObjSaveUndo;
        hObj := SelObjects[i];
        ObjPenColor[hobj] := PenColor1.Selected;
      end;
      Update;
    end;
end;

procedure TForm1.PenWidth1Change(Sender: TObject);
var
  i: integer;
  hObj: integer;
begin
  with ImageEnVect1 do
    for i := -1 to SelObjectsCount - 1 do
    begin
      if i >= 0 then
      begin
        ObjSaveUndo;
        hObj := SelObjects[i];
        ObjPenWidth[hObj] := StrToIntDef(PenWidth1.Text, 1);
      end;
      Update;
    end;
end;

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

gts6

USA
5 Posts

Posted - Apr 07 2013 :  10:40:10  Show Profile  Reply
that only puts the border around the rectangle of the text, what im trying to do is put the border around each individual letter, know what i mean. Like a white letter 'T' for example, and a black border around the white letter 'T'
Go to Top of Page

w2m

USA
1990 Posts

Posted - Apr 07 2013 :  11:18:07  Show Profile  Reply
Sorry... that is not possible with current version.

William Miller
Go to Top of Page

gts6

USA
5 Posts

Posted - Apr 07 2013 :  12:31:19  Show Profile  Reply
maybe i should re-word that. im looking to do more of an 'outline' and not really a border. want an outline of each letter.
Go to Top of Page

gts6

USA
5 Posts

Posted - Apr 07 2013 :  12:34:52  Show Profile  Reply
ok thanks, do you know if it will be available in the next version?
Go to Top of Page

w2m

USA
1990 Posts

Posted - Apr 07 2013 :  12:58:51  Show Profile  Reply
You can use some Windows Outline fonts... I just tested this and it works just fine.

With respect to new features, you will have to contact support. I do not work for ImageEn.

William Miller
Go to Top of Page

gts6

USA
5 Posts

Posted - Apr 07 2013 :  13:00:21  Show Profile  Reply
excellent idea (the use of an outline font!)

thanks for your help
Go to Top of Page

graph_man

328 Posts

Posted - Mar 11 2024 :  12:57:26  Show Profile  Reply
do you know if it will be available in the next version?
Go to Top of Page

xequte

38607 Posts

Posted - Mar 11 2024 :  14:40:10  Show Profile  Reply
Hi

This is available for TIETextLayer:

http://www.imageen.com/help/TIETextLayer.TextStyling.html

It is not available for the legacy TImageEnVect iekTEXT object, but you can add a TIETextLayer to a TImageEnVect.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: