procedure Resize(const AWidth, AHeight: Integer);
void __fastcall Resize(const int AWidth, const int AHeight);
Resizes the dimensions of the current TBitmap.
- If any dimension of the current TBitmap image is larger than the specified
AHeightparameters, then decrease the current image size (keeping current image proportions--the ratio between the width and height) to fit all the current image in the rectangle with the specified
AHeight. That is, either the scaled current image's width is equal to the specified
AWidthor the scaled current image's height is equal to the specified
AHeight. All the current image should be placed into the rectangle having the specified
AHeight. The current image is drawn centered in the rectangle.
- If the original current image is smaller than a rectangle with the specified
AHeight, then the current image is not resized. The current image is drawn centered in the rectangle.