TByteMap.SetSize

function SetSize(NewWidth, NewHeight: Integer): Boolean; override;

procedure SetSize(Source: TPersistent); // implemented in TCustomMap

Description

Call SetSize to set new dimensions of the bytemap. If one of the arguments is zero, the bytemap is considered empty and its Bits property is set to nil.

Calling SetSize works faster than changing both Width and Height properties.

If you use another bitmap, byte map or control as an argument, the byte map will be sized to corresponding dimensions.

See Also

TCustomMap, TCustomMap.Height, TCustomMap.Width, Bits