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
 Center-aligned text?

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
PeterPanino Posted - Oct 24 2022 : 15:34:42
I create transparent outlined text with this code:

ImageEnView1.LayersAdd(ielkText, 100, 100);
  var txtLayer := TIETextLayer(ImageEnView1.CurrentLayer);
  txtLayer.Font.Size := 32;
  txtLayer.Font.Style := [fsBold];
  txtLayer.Font.Color := clWhite;
  txtLayer.TextStyling.BorderWidth := 3;
  txtLayer.Alignment := iejCenter;
  txtLayer.TextStyling.BorderColor := clGray;
  txtLayer.TextStyling.BorderLineJoin := ieljRound;
  txtLayer.TextStyling.FillTransparency1 := 0; 
  txtLayer.Text := 'Buy' +#13#10+ 'Transparent' +#13#10+ 'Glass!';
  txtLayer.SizeToText();
  ImageEnView1.Update();


This is the result:



However, the lines are LEFT-ALIGNED although I wrote:

txtLayer.Alignment := iejCenter;

Is it possible to center-align each line?

1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 24 2022 : 22:12:09
Hi

At this time, the hard returns are not supported, so only the whole text block is centered.

Nigel
Xequte Software
www.imageen.com