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

TCustomImageList.WriteAdvData

Writes the image content for multiple resolutions to the specified stream.

Declaration

Source position: imglist.pp line 335

public procedure TCustomImageList.WriteAdvData(

  AStream: TStream

); virtual;

Arguments

AStream

  

Stream where the content for the image resolutions is stored.

Description

WriteAdvData is procedure used to write image data for multiple resolutions to the stream specified in AStream. WriteAdvData is similar to the WriteData method, but writes only the image resolutions other than the default resolution for the image list. Like the default resolution, image resolutions that were automatically created at design-time are also ignored in the method.

WriteAdvData uses the Resolutions enumerator to gather the image resolutions handled in the method. WriteAdvData writes an image list signature that identifies the storage format used in the stream. WriteAdvData writes an Integer value that indicates the number of resolutions included in the stream.

The WriteData method in TCustomImageListResolution is used to write the image content for each of the resolutions handled in the method. Data compression is enabled for each of the resolutions written to the stream.

WriteAdvData is used in the implementation of the DefineProperties and Equals methods.

Use WriteData to store the image content for the default resolution to a stream.

Use ReadAdvData to read the values written using the WriteAdvData method.

See also

TCustomImageList.Resolutions

  

Provides access to the image resolutions (or sizes) used in the image lists.

TCustomImageList.DefineProperties

  

Defines properties used in the LCL component streaming mechanism.

TCustomImageList.Equals

  

Compares the contents of the image lists.

TCustomImageList.WriteData

  

Writes image data for the default resolution to a stream.

TCustomImageListResolutions

  

Provides multiple image resolutions in TCustomImageList.


Version 3.2 Generated 2024-02-25 Home