FMX.MultiResBitmap.TCustomBitmapItem.CreateBitmap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CreateBitmap(const AFileName: string = ''): TBitmap; virtual;

C++

virtual Fmx::Graphics::TBitmap* __fastcall CreateBitmap(const System::UnicodeString AFileName = System::UnicodeString());

Properties

Type Visibility Source Unit Parent
function public
FMX.MultiresBitmap.pas
FMX.MultiResBitmap.hpp
FMX.MultiResBitmap TCustomBitmapItem

Description

Creates a bitmap instance in the current bitmap item.

CreateBitmap creates and returns a TBitmap bitmap instance.

CreateBitmap creates an instance of the TBitmap bitmap, and loads the image from the specified AFileName file. If AFileName = '', then CreateBitmap tries to load an image from the FileName file. After loading the image, the image is adjusted according to the Scale, SizeKind,Width, Height,TransparentColor, and other properties of the current bitmap item.

See Also