SetSize

Graphics32

TCustomMap.SetSize

procedure SetSize(NewWidth, NewHeight: Integer); virtual;

procedure SetSizeFrom(Source: TPersistent);

Description

Simultaneously changes both Width and Height of contained data.

The SetSizeFrom method 'knows' how to get the size from the following objects or their descendants: TCustomMap, TGraphic, TControl and nil. When other parameter is specified, TCusomMap will generate an exception.

The SetSize method is overriden in descendants (TBitmap32, TByteMap) so that bitmap bits are reallocated and byte map data array is resized.

See Also

Height, TBitmap32, TByteMap, TCustomMap, Width