Getting Started with TMS FNC Image
Prerequisites
- Delphi with TMS FNC UI Pack installed.
- A new or existing VCL, FMX, or WEB application.
Steps
- Drop a
TTMSFNCImage onto a form.
- Assign
BitmapContainer when the image comes from a shared bitmap library, or assign Bitmap directly for a one-off image.
- Use
AspectRatio, Stretch, Center, and Cropping to control how the bitmap fits the available rectangle.
- 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