Author: Lou Adler Text to GIF Answer: 1 2 procedure TxtToGif(txt, FileName: string); 3 var 4 temp: TBitmap; 5 GIF: TGIFImage; 6 begin 7 8 temp := TBitmap.Create; 9 try 10 temp.Height := 400; 11 temp.Width := 60; 12 temp.Transparent := True; 13 temp.Canvas.Brush.Color := colFondo.ColorValue; 14 temp.Canvas.Font.Name := Fuente.FontName; 15 temp.Canvas.Font.Color := colFuente.ColorValue; 16 temp.Canvas.TextOut(10, 10, txt); 17 Imagen.Picture.Assign(nil); 18 19 GIF := TGIFImage.Create; 20 try 21 // Convert the bitmap to a GIF 22 GIF.Assign(Temp); 23 // Save the GIF 24 GIF.SaveToFile(FileName); 25 // Display the GIF 26 Imagen.Picture.Assign(GIF); 27 finally 28 GIF.Free; 29 end; 30 31 finally 32 33 temp.Destroy; 34 end; 35 end;