Skip to content
GR32>TBitmap32>ChangeSizeMethodProtected
Inherited from:TCustomMap.ChangeSize

TBitmap32.ChangeSize

Protected virtual method performing low-level buffer reallocation and dimension updates.

Declaration

pascal
procedure ChangeSize(var Width, Height: Integer; NewWidth, NewHeight: Integer; ClearBuffer: Boolean = True); virtual;

Parameters

ParameterTypeDescription
WidthIntegerReference to current width variable.
HeightIntegerReference to current height variable.
NewWidthIntegerRequested new width.
NewHeightIntegerRequested new height.
ClearBufferBooleanWhen True, buffer content should be cleared.

Description ​

ChangeSize is an internal protected method overridden by derived classes (TCustomBitmap32, TByteMap, etc.) to reallocate memory buffers and update Width and Height.