Skip to content
GR32>TCustomBitmap32>SetSizeFromMethod
Inherited from:TCustomMap.SetSizeFrom

TCustomBitmap32.SetSizeFrom

Copies dimensions from another object.

Declaration

pascal
function SetSizeFrom(Source: TPersistent; ClearBuffer: Boolean = True): Boolean;

Parameters

ParameterTypeDescription
SourceTPersistentSource object (typically a TCustomMap instance) to copy dimensions from.
ClearBufferBooleanWhen True (default), clears buffer contents on resize.

Description ​

SetSizeFrom extracts dimensions from Source and calls SetSize to resize this instance to match. Returns True if dimensions were changed.

Source can be an object based on one of the following classes:

  • TCustomMap
  • TGraphic
  • TControl

If Source = nil then the size is set to (0, 0).