Sign in Join
FPDoc Onlineexperiment

TFPImageBitmap.WriteStream procedure

Member of TFPImageBitmapprotectedIn unit Graphics

Write the data to a stream.

Declaration

pascal
procedure WriteStream(AStream: TMemoryStream); override

Description

WriteStream is an overridden procedure in TFPImageBitmap used to write the image content to the stream specified in AStream. WriteStream implements the abstract virtual method defined in TRasterImage.

WriteStream creates temporary TLazIntfImage and TFPCustomImageWriter instances that are used to write the data for the internal TRawImage instance used in the class. Raw image data is stored in the TLazIntfImage instance, and its SaveToStream method is called to write the values to AStream.

No actions are performed in the method when the data size for the raw image is 0.

See also

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