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

TRasterImage.Clear

Removes raw image data and frees the internal save stream.

Declaration

Source position: graphics.pp line 1298

public procedure TRasterImage.Clear; override;

Description

Clear is an overridden method used to remove raw image data and free the internal save stream in the class instance. No actions are performed in the method when Empty returns True.

Clears set the values in Height and Width to 0 (zero) to reflect the new size for the image. Clear calls the Changed method when a BeginUpdate process is not active.

See also

TRasterImage.Changed

  

Changed - method to call when properties have changed.

TRasterImage.BeginUpdate

  

BeginUpdate - start the update process.

TRasterImage.EndUpdate

  

EndUpdate - finishes the update process.

TGraphic.Empty

  

Indicates if the graphic is empty (contains no data).

TGraphic.Clear

  

Clear has an empty implementation in TGraphic.


Version 4.0 Generated 2025-05-03 Home