FMX.Graphics.TBitmapCodecManager.SaveToFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function SaveToFile(const AFileName: string; const Bitmap: TBitmapSurface; const SaveParams: PBitmapCodecSaveParams = nil): Boolean;

C++

__classmethod bool __fastcall SaveToFile(const System::UnicodeString AFileName, Fmx::Surfaces::TBitmapSurface* const Bitmap, const PBitmapCodecSaveParams SaveParams = (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.

See Also