FMX.Graphics.TBitmapCodecManager.SaveToFile

De RAD Studio API Documentation
Aller à : navigation, rechercher

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));

Propriétés

Type Visibilité  Source Unité  Parent
function public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TBitmapCodecManager

Description

Enregistre un TBitmap dans un fichier.

SaveToFile est une méthode abstraite. Les descendants de TBitmapCodecManager la redéfinissent pour coder et enregistrer un contenu d'image TBitmap dans un fichier spécifié par le paramètre AFileName.

Bitmap spécifie le TBitmap à partir duquel enregistrer l'image.

Lors de l'appel à SaveToFile, la méthode de l'encodeur approprié sera appelée automatiquement.

Remarque : Pour une liste des formats supportés par chaque plate-forme, voir TBitmapCodecManager.

Voir aussi