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

TRasterImage.FreeSaveStream

Frees the save stream assigned to the internal shared image.

Declaration

Source position: graphics.pp line 1282

protected procedure TRasterImage.FreeSaveStream;

Description

FreeSaveStream is a procedure used to free the TStream instance assigned as the SaveStream in the shared image. No actions are performed in the method when the SaveStream has not been assigned in the shared image.

FreeSaveStream calls UnshareImage to discard and recreate the shared image class instance in the class. The TStream instance in the shared image is freed prior to exiting from the method.

FreeSaveStream is used in the implementation of methods like: Assign, Clear, EndUpdate, and Changed.


Version 4.0 Generated 2025-05-03 Home