Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Ultimate Pack - special offer!

Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

WinAPI Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com
cdtrrracks.com new!

Blogspot  greatis.blogspot.com

Convert text string to gif-file - Algorithms - Tips & Tricks - Greatis Delphi Pages

Unfortunately, TGIFImage type is not included into the Delphi. So you must establish a component, which supports this type.
After that you can try this:


procedure TForm1.Button1Click(Sender: TObject);
var
  Bitmap: TBitmap;
  GIFImage: TGIFImage;
begin
  Bitmap:=TBitmap.Create;
  Bitmap.Canvas.TextOut(1, 1, Edit1.Text);
  GIFImage:=TGIFImage.Create;
  GIFImage.Assign(Bitmap);
  if SaveDialog1.Execute then
    GIFImage.SaveToFile(SaveDialog1.FileName);
end;
For more
Delphi Help

Download source