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

# TFPImageBitmap.WriteStream

Write the data to a stream.

## Declaration

Source position: graphics.pp line 1450

`protected procedure TFPImageBitmap.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

TRasterImage.WriteStream |  | Writes the image content to the specified stream instance.