[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Writes the content for the multi-image icon to the specified stream.
Source position: graphics.pp line 1653
protected procedure TCustomIcon.WriteStream( |
AStream: TMemoryStream |
); override; |
AStream |
|
TMemoryStream instance where icon data is stored. |
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.
|
Writes the image content to the specified stream instance. |
Version 3.2 | Generated 2024-02-25 | Home |