Home VCL Poems TImage

begin  // VCL
  var myImg := TImage.Create(Application);
  myImg.Parent := MainForm;
  myImg.Align := TAlign.alClient;
  myImg.Margins.SetBounds(30,30,30,30);
  myImg.AlignWithMargins := True;
  myImg.Stretch := True;
  myImg.Picture.LoadFromFile('Delphi Logo.png');
end;
A TImage on the form, a sight to see,
A canvas for pictures, a place to be.
Load from file or assign at run,
A visual delight, second to none.

In Delphi code, it's easy to use,
A component so versatile, you cannot refuse.
Display a bitmap or a JPEG too,
The options are endless, it's up to you.

Stretch or center, align with care,
The TImage component is always there.
A tool for developers, a friend indeed,
A TImage on the form is all you need.

So next time you code in Delphi land,
Remember the TImage, always at hand.
A component so simple, yet so grand,
The TImage in Delphi is simply grand.
Scroll to Top