Declaration ​
pascal
function SetSize(NewWidth, NewHeight: Integer; ClearBuffer: Boolean = True): Boolean; virtual;Parameters ​
| Parameter | Type | Description |
|---|---|---|
NewWidth | Integer | New horizontal dimension. |
NewHeight | Integer | New vertical dimension. |
ClearBuffer | Boolean | When True (default), clears buffer contents on resize. |
Returns ​
| Type | Description |
|---|---|
Boolean | Returns True if dimensions were modified or buffer reallocated; otherwise False. |
Description ​
SetSize changes the dimensions of the map to NewWidth and NewHeight. If ClearBuffer is True, buffer contents are cleared or reinitialized. Returns True if the map dimensions changed.