Vcl.GraphUtil.ScaleImage
Delphi
procedure ScaleImage(const SourceBitmap, ResizedBitmap: TBitmap;
const ScaleAmount: Double; PixelFormat: TPixelFormat = pf24bit);
C++
extern DELPHI_PACKAGE void __fastcall ScaleImage(Vcl::Graphics::TBitmap* const SourceBitmap, Vcl::Graphics::TBitmap* const ResizedBitmap, const double ScaleAmount, Vcl::Graphics::TPixelFormat PixelFormat = (Vcl::Graphics::TPixelFormat)(0x6));
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.GraphUtil.pas Vcl.GraphUtil.hpp |
Vcl.GraphUtil | Vcl.GraphUtil |
Description
Met à l'échelle un bitmap. ScaleImage prend en charge les bitmaps 24-bpp et 32-bpp.
ScaleImage met un bitmap à l'échelle avec le facteur d'échelle ScaleAmount.
SourceBitmap représente le bitmap source.
ResizedBitmap représente le bitmap redimensionné.
ScaleAmount représente le facteur d'échelle.
Remarque: <spanResizedBitmap est donné par référence. Dès la fin de l'exécution de la routine, le résultat est présent dans la variable.