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

TFPImageBitmap.InitializeWriter

Configures the writer class instance for the image type.

Declaration

Source position: graphics.pp line 1437

protected procedure TFPImageBitmap.InitializeWriter(

  AImage: TLazIntfImage;

  AWriter: TFPCustomImageWriter

); virtual;

Arguments

AImage

  

LCL interface image with the image data for the write class instance.

AWriter

  

FCL image write instance updated in the method.

Description

InitializeWriter is a virtual method used to configure the FCL-compatible image writer class instance in AWriter. InitializeWriter assigns the Progress method to the OnProgress event handler in AWriter. When AWriter implements the ILazImageWriter interface, its Initialize method is called to store the data for the LCL interface image in AImage.

InitializeWriter is called from the WriteStream method prior to any operation that writes the raw image data to a stream.


Version 4.0 Generated 2025-05-03 Home