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

procedure SetSizeFrom(Source: TPersistent);


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

TBitmap32, TCustomMap, Height, Width, TByteMap