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
 Add custom text to top of image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yilmazca

Turkey
2 Posts

Posted - Feb 12 2018 :  09:36:28  Show Profile  Reply
Hi,

How can I add custom text to top in canvas area..

Example:



Also I am using High DPI Images.. What is the best lossless method before saving(JPG)

Thanks.

ibrahim YILMAZ

w2m

USA
1990 Posts

Posted - Feb 13 2018 :  11:26:41  Show Profile  Reply
procedure TForm1.AddLayer1Click(Sender: TObject);
begin
  {Add space at the top of the image to hold the text}
  ImageEnView1.Proc.ImageResize(0, 30, 0, 0);
  {Add a text layer}
  ImageEnView1.LayersAdd(ielkText);
  {Set the position and dimensions of the layer}
  ImageEnView1.Layers[ImageEnView1.LayersCurrent].PosX := 0;
  ImageEnView1.Layers[ImageEnView1.LayersCurrent].PosY := 0;
  ImageEnView1.Layers[ImageEnView1.LayersCurrent].Width := ImageEnView1.IEBitmap.Width;
  ImageEnView1.Layers[ImageEnView1.LayersCurrent].Height := 30;
  {Set the layer text}
  TIETextLayer(ImageEnView1.CurrentLayer).Text := 'Custom Custom Custom Custom Custom Custom';
  {Align the text}
  TIETextLayer(ImageEnView1.CurrentLayer).Alignment := iejCenter;
  {Set the fill color}
  TIETextLayer(ImageEnView1.CurrentLayer).FillColor := clYellow;
  {Merge the layers}
  ImageEnView1.LayersMergeAll();
  ImageEnView1.Update();
end;


As far as saving this with lossless transformation it is not possible. Lossless transformation is only possible with source and destination files and specific lossless transformation procedures - TIEJpegTransform = (jtNone, jtCut, jtHorizFlip, jtVertFlip, jtTranspose, jtTransverse, jtRotate90, jtRotate180, jtRotate270);

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

yilmazca

Turkey
2 Posts

Posted - Feb 15 2018 :  13:04:56  Show Profile  Reply
I have not Text layer property my imageEn version 6.2 and not have this options, libaries..

Also I am use Bitmap.Textout but I need some example can you help me ? thanks..

ibrahim YILMAZ
Go to Top of Page

w2m

USA
1990 Posts

Posted - Feb 15 2018 :  13:08:16  Show Profile  Reply
I recommend that you upgrade to the current version. It has many new layer options including the best text out in the library.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: