Table of Contents

Getting Started with TMS FNC Image

Prerequisites

  • Delphi with TMS FNC UI Pack installed.
  • A new or existing VCL, FMX, or WEB application.

Steps

  1. Drop a TTMSFNCImage onto a form.
  2. Assign BitmapContainer when the image comes from a shared bitmap library, or assign Bitmap directly for a one-off image.
  3. Use AspectRatio, Stretch, Center, and Cropping to control how the bitmap fits the available rectangle.
  4. Enable AutoSize only when the control should resize to the bitmap.
procedure TForm1.ConfigureImage;
begin
  TMSFNCImage1.BitmapContainer := TMSFNCBitmapContainer1;
  TMSFNCImage1.Center := True;
  TMSFNCImage1.Stretch := False;
  TMSFNCImage1.AspectRatio := True;
end;

Next steps