[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 1297

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

  

Implements object persistence for the TGraphic type.


Version 4.0 Generated 2025-05-03 Home