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

TCustomImageList.ReadData

Reads image data for the default resolution from a stream.

Declaration

Source position: imglist.pp line 334

public procedure TCustomImageList.ReadData(

  AStream: TStream

); virtual;

Arguments

AStream

  

Stream with the image data read in the method.

Description

ReadData is a procedure used to read image data for the default resolution from the stream specified in AStream. ReadData allows image data written using the WriteData method to be stored in the image list.

ReadData calls BeginUpdate to suspend OnChange notifications when loading the image data from the stream. EndUpdate is called when the image data has been loaded from the stream.

ReadData calls the GetResolution method to locate the TCustomImageListResolution class instance which uses the image width in the Width property. The ReadData method in TCustomImageListResolution is used to read image data from the stream in AStream.

ReadData updates the internal Changed flag for the image list, and calls the Change method to perform change notifications.

See also

TCustomImageList.WriteData

  

Writes image data for the default resolution to a stream.

TCustomImageList.BeginUpdate

  

Starts an update to the image list, and controls execution of the OnChange event.

TCustomImageList.EndUpdate

  

Finishes an update to the image list, and calls Change.

TCustomImageList.OnChange

  

Event handler signalled when the image list is changed.

TCustomImageList.Change

  

Sends change notifications when the image list is updated.

TCustomImageList.Width

  

Width of images in the default resolution for the image list.

TCustomImageList.GetResolution

  

Gets the value for the indexed Resolution property.

TCustomImageList.Resolution

  

Provides indexed access to an image resolution with the specified image width.

TCustomImageListResolution

  

Implements an image resolution (or size) used in TCustomImageList.


Version 3.2 Generated 2024-02-25 Home