Skip to main content
Table of Contents

TTMSFNCImage.BitmapContainer Property

External bitmap container used to resolve named or shared bitmap resources.

API unit family: TMSFNCImage Declaring type: TTMSFNCImage Inherited from: TTMSFNCCustomImage Type: TTMSFNCBitmapContainer

Syntax

FMX.TMSFNCImage.hppPascalC++
property BitmapContainer: TTMSFNCBitmapContainer;
__property TTMSFNCBitmapContainer* BitmapContainer = {read=GetBitmapContainer, write=SetBitmapContainer};

Usage examples

Display a shared bitmap

Uses a shared bitmap container and leaves the image centered at its natural size.

Display a shared bitmapPascalC++
procedure TForm1.ConfigureImage;
begin
  TMSFNCImage1.BitmapContainer := TMSFNCBitmapContainer1;
  TMSFNCImage1.Center := True;
  TMSFNCImage1.Stretch := False;
  TMSFNCImage1.AspectRatio := True;
end;

void __fastcall TForm1::ConfigureImage()
{
  TMSFNCImage1->BitmapContainer = TMSFNCBitmapContainer1;
  TMSFNCImage1->Center = true;
  TMSFNCImage1->Stretch = false;
  TMSFNCImage1->AspectRatio = true;
}

Read the related guide