TCustomIcon.WriteStream procedure
Writes the content for the multi-image icon to the specified stream.
Declaration
procedure WriteStream(AStream: TMemoryStream); overrideDescription
WriteStream is an overridden method used to write the content for
the multi-image icon to the stream specified in
AStream. WriteStream implements the abstract virtual method
defined in the ancestor class.
WriteStream performs actions needed to write the header, icon directory, and content for each of the images used in the multi-image icon to the TMemoryStream instance. It handles both PNG and DIB Bitmap icon images, and creates Mask data for images when it is not already present.
For icon images used in TCursorImage, the X and Y coordinates for
the HotSpot are also included in the image data.
WriteStream is called from SaveStreamNeeded when the
SaveToStream method is performed.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
