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));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.GraphUtil.pas Vcl.GraphUtil.hpp |
Vcl.GraphUtil | Vcl.GraphUtil |
Description
Scales a bitmap. ScaleImage supports 24-bpp and 32-bpp bitmaps.
ScaleImage scales a bitmap by the ScaleAmount extent.
SourceBitmap represents the source bitmap.
ResizedBitmap represents the resized bitmap.
ScaleAmount represents the scale amount.
Note: ResizedBitmap is given by reference. After the routine ends, the result will be present in the variable.