Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TBitmap32🞂SetSizeMethod
Inherited from:TCustomMap.SetSize

TBitmap32.SetSize

Resizes the map to new dimensions.

Declaration ​

pascal
function SetSize(NewWidth, NewHeight: Integer; ClearBuffer: Boolean = True): Boolean; virtual;

Parameters ​

ParameterTypeDescription
NewWidthIntegerNew horizontal dimension.
NewHeightIntegerNew vertical dimension.
ClearBufferBooleanWhen True (default), clears buffer contents on resize.

Returns ​

TypeDescription
BooleanReturns 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.