FMX.Graphics.TBitmapCodecManager.SaveToFile
Delphi
class function SaveToFile(const AFileName: string; const ABitmap: TBitmapSurface;
const ASaveParams: PBitmapCodecSaveParams = nil): Boolean;
C++
__classmethod bool __fastcall SaveToFile(const System::UnicodeString AFileName, Fmx::Surfaces::TBitmapSurface* const ABitmap, const PBitmapCodecSaveParams ASaveParams = (PBitmapCodecSaveParams)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TBitmapCodecManager |
Description
Saves a TBitmap to a file.
SaveToFile is an abstract method. The TBitmapCodecManager's descendants override it to encode and save a TBitmap content image to a file specified by the AFileName
parameter.
Bitmap
specifies the TBitmap from where to save the image.
When calling SaveToFile, the method of the proper encoder will be called automatically.
Note: For a list of formats supported by each platform, see TBitmapCodecManager.