[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TRasterImage.Assign

Assign - copies details from Source according to data type.

Declaration

Source position: graphics.pp line 1279

public procedure TRasterImage.Assign(

  Source: TPersistent

); override;

Arguments

Source

  

Persistent object with values copied in the method.

Description

Assign is a procedure used to copy values from the specified TPersistent object into the current class instance. Assign is overridden to handle using a TRasterImage or TFPCustomImage instance in the Source parameter.

No actions are performed in the method when Source is the same class instance as the current class instance (Self).

When Source is a TRasterImage instance, the following actions are performed:

When Source is a TFPCustomImage instance, the following actions are performed:

For other TPersistent descendants, the inherited method is called using Source as an argument.

See also

TGraphic.Assign

  

Assign - checks if there really is a source to assign (if not, calls Clear), then calls inherited method.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.