Skip to content
GR32>TCustomBitmap32>SetSizeMethod
Inherited from:TCustomMap.SetSize

TCustomBitmap32.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.

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.