Sign in Join
FPDoc Onlineexperiment

TCustomBitmap.Changed procedure

Member of TCustomBitmapprotectedIn unit Graphics

Performs actions needed when the image data for the bitmap has been changed.

Declaration

pascal
procedure Changed(Sender: TObject); override

Description

Changed is an overridden method in TCustomBitmap. Changed examines the value in Sender to determine the origin for the change.

When Sender is the Canvas for the class instance, the image was changed after an update to its Canvas. The raw image data in the shared image is no longer valid, and it is freed. The inherited method is called to free the save stream for the shared image, set the value in Modified, and signal the OnChange event handler (when assigned).

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.