Description ​
ChangeSize is an internal protected method overridden by derived classes (TCustomBitmap32, TByteMap, etc.) to reallocate memory buffers and update Width and Height.
TCustomMap.ChangeSizeProtected virtual method performing low-level buffer reallocation and dimension updates.
procedure ChangeSize(var Width, Height: Integer; NewWidth, NewHeight: Integer; ClearBuffer: Boolean = True); virtual;| Parameter | Type | Description |
|---|---|---|
Width | Integer | Reference to current width variable. |
Height | Integer | Reference to current height variable. |
NewWidth | Integer | Requested new width. |
NewHeight | Integer | Requested new height. |
ClearBuffer | Boolean | When True, buffer content should be cleared. |
ChangeSize is an internal protected method overridden by derived classes (TCustomBitmap32, TByteMap, etc.) to reallocate memory buffers and update Width and Height.